-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1f2050
commit f1ce770
Showing
6 changed files
with
86 additions
and
16 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
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
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,28 @@ | ||
gap> START_TEST("tilde.tst"); | ||
gap> aqq~ := 1; | ||
Error, Variable: 'aqq' must have a value | ||
Syntax error: ; expected in stream:1 | ||
aqq~ := 1; | ||
^ | ||
gap> ~a := 1; | ||
Error, Variable: '~' must have a value | ||
Syntax error: ; expected in stream:1 | ||
~a := 1; | ||
^ | ||
gap> ~ := 1; | ||
Error, '~' cannot be assigned | ||
gap> l := [2, ~]; | ||
[ 2, ~ ] | ||
gap> l = l[2]; | ||
true | ||
gap> r := rec(x := ~, y := [1,2,~]); | ||
rec( x := ~, y := [ 1, 2, ~ ] ) | ||
gap> r.x; | ||
rec( x := ~, y := [ 1, 2, ~ ] ) | ||
gap> r.y; | ||
[ 1, 2, rec( x := ~[3], y := ~ ) ] | ||
gap> r.x; | ||
rec( x := ~, y := [ 1, 2, ~ ] ) | ||
gap> r.y[3]; | ||
rec( x := ~, y := [ 1, 2, ~ ] ) | ||
gap> STOP_TEST( "tilde.tst", 1); |