X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/e0701bfb3e9047a565191d1e582f7f5d97a79f5f..946b28a8478c998de8aaec852f23548a4242e070:/fth/t_file.fth diff --git a/fth/t_file.fth b/fth/t_file.fth index e6ba0bd..297f208 100644 --- a/fth/t_file.fth +++ b/fth/t_file.fth @@ -60,7 +60,7 @@ include? }T{ t_tools.fth true fp-require-e ! -true value verbose +false value verbose : testing verbose IF @@ -73,9 +73,6 @@ true value verbose : s= compare 0= ; : $" state IF postpone s" else ['] s" execute THEN ; immediate -\ FIXME: stubs for missing definitions -: file-status 2drop 0 -1 ; - TESTING File Access word set DECIMAL @@ -214,12 +211,12 @@ T{ FN2 R/W BIN OPEN-FILE SWAP DROP 0= -> FALSE }T T{ FN2 DELETE-FILE 0= -> FALSE }T \ ---------------------------------------------------------------------------- -\ TESTING multi-line ( comments -\ -\ T{ ( 1 2 3 -\ 4 5 6 -\ 7 8 9 ) 11 22 33 -> 11 22 33 }T -\ +TESTING multi-line ( comments + +T{ ( 1 2 3 +4 5 6 +7 8 9 ) 11 22 33 -> 11 22 33 }T + \ ---------------------------------------------------------------------------- TESTING SOURCE-ID (can only test it does not return 0 or -1) @@ -246,6 +243,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)