Skip to content

Commit

Permalink
Add some bonus tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed Jan 22, 2024
1 parent c785c43 commit d34bf33
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tst/test_loop.tst
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,13 @@ gap> test_cycle(rec(a := 1));
gap> test_cycle(rec(a := [1,2], b := [3,4]));
gap> test_cycle(rec(a := "4,5,6"));
gap> test_cycle(rec(a := rec(b := rec(c := "4,5,6"))));
gap> test_cycle([1,2,[3,4,rec(a := false)],"abc",false,"",rec(c := ["4",true]),7,8]);
gap> test_cycle([1,2,[3,4,rec(a := false)],"abc",false,"",rec(c := ["4",true]),7,8]);
gap> test_cycle([1,2,"",['a', 'b', 'c']]);
gap> test_cycle([0.0]);
gap> test_cycle([-0.0]);
gap> test_cycle([1.0,2.0,1.0e100,1.0e-100]);
gap> r := rec();;
gap> r.("a b c") := 2;;
gap> test_cycle(r);
gap> r.("a \"love\" cats") := 3;;
gap> test_cycle(r);

0 comments on commit d34bf33

Please sign in to comment.