Skip to content

Commit

Permalink
Add a test for StringFile and FileString
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspf committed Aug 19, 2016
1 parent 01271c2 commit fa6a96c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tst/testinstall/read.tst
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,13 @@ gap> SeekPositionStream(x, 3);
true
gap> ReadAll(x);
"lo\ngoodbye\ni like pies\n"
gap> StringFile(Filename( DirectoriesLibrary("tst"), "example.txt" ));
"hello\ngoodbye\ni like pies\n"
gap> dir := DirectoryTemporary();;
gap> FileString( Filename(dir, "tmp1"), "Hello, world!");
13
gap> StringFile( Filename(dir, "tmp2"));
fail
gap> StringFile( Filename(dir, "tmp1"));
"Hello, world!"
gap> STOP_TEST( "read.tst", 220000);

0 comments on commit fa6a96c

Please sign in to comment.