X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/3f863e2896ed0418e1ad202e233b5a036f989ee2..5a30561336c83c45b348c1dc59fb9dc4dd15237c:/fth/t_file.fth diff --git a/fth/t_file.fth b/fth/t_file.fth index 10f434f..7171a78 100644 --- a/fth/t_file.fth +++ b/fth/t_file.fth @@ -74,7 +74,6 @@ true value verbose : $" state IF postpone s" else ['] s" execute THEN ; immediate \ FIXME: stubs for missing definitions -: resize-file drop 2drop -1 ; : file-status 2drop 0 -1 ; TESTING File Access word set @@ -247,6 +246,21 @@ T{ FID1 @ CLOSE-FILE -> 0 }T \ Tidy the test folder T{ fn3 DELETE-FILE DROP -> }T +\ ------------------------------------------------------------------------------ +TESTING REQUIRED REQUIRE INCLUDED +\ Tests taken from Forth 2012 RfD + +T{ 0 S" t_required-helper1.fth" REQUIRED + REQUIRE t_required-helper1.fth + INCLUDE t_required-helper1.fth + -> 2 }T + +T{ 0 INCLUDE t_required-helper2.fth + S" t_required-helper2.fth" REQUIRED + REQUIRE t_required-helper2.fth + S" t_required-helper2.fth" INCLUDED + -> 2 }T + \ ---------------------------------------------------------------------------- TESTING two buffers available for S" and/or S\" (Forth 2012)