Skip to content

Commit

Permalink
Add some tests for StructuralCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspf authored and fingolfin committed Jul 20, 2017
1 parent b0b4223 commit a414127
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tst/testinstall/opers/StructuralCopy.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
gap> START_TEST("StructuralCopy.tst");

# Blist
gap> a:=[true];; IsBlistRep(a);
true
gap> b:=[a,a];; IsIdenticalObj(b[1],b[2]);
true
gap> c:=StructuralCopy(b);; IsIdenticalObj(c[1],c[2]);
true

# Plist
gap> a:=[1];; IsPlistRep(a);
true
gap> b:=[a,a];; IsIdenticalObj(b[1],b[2]);
true
gap> c:=StructuralCopy(b);; IsIdenticalObj(c[1],c[2]);
true

# String
gap> a:="test";; IsStringRep(a);
true
gap> b:=[a,a];; IsIdenticalObj(b[1],b[2]);
true
gap> c:=StructuralCopy(b);; IsIdenticalObj(c[1],c[2]);
true

#
gap> STOP_TEST("StructuralCopy.tst");

0 comments on commit a414127

Please sign in to comment.