-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow input and output to be mixed in Test
This was previously forbidden as it can lead to confusing errors, but it also broke some valid Tests, as GAP can begin outputting before a complete statement has been inputted.
- Loading branch information
1 parent
771f234
commit 5296012
Showing
5 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Some very basic tests of GAP's Test function | ||
gap> START_TEST("testing.tst"); | ||
gap> Print("cheese\n"); Print("bacon"); Print("egg\n"); | ||
cheese | ||
baconegg | ||
gap> 2; | ||
2 | ||
gap> x := 4; | ||
4 | ||
gap> x; | ||
4 | ||
|
||
# | ||
# Statements where input + output are mixed | ||
# Checks test can handle output directly cut+pasted from GAP's output | ||
# | ||
gap> x := | ||
> 2; | ||
2 | ||
gap> x := | ||
> 2; y := | ||
2 | ||
> 3; | ||
3 | ||
gap> if x = 2 then | ||
> Print("pass\n"); | ||
pass | ||
> else | ||
> Print("fail\n"); | ||
> fi; | ||
|
||
# | ||
# | ||
gap> STOP_TEST("testing.tst", 1); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters