Skip to content

Commit a37d10f

Browse files
Add atomic tests
1 parent 9a884d2 commit a37d10f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

tst/testinstall/atomic_basic.tst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,31 @@ gap> h5 := function(readonly x, readonly y, z) end;;
7676
Syntax error: 'readonly' argument of non-atomic function in stream:1
7777
h5 := function(readonly x, readonly y, z) end;;
7878
^
79+
gap> h5 := {readonly x} -> x;
80+
Syntax error: 'readonly' argument of non-atomic function in stream:1
81+
h5 := {readonly x} -> x;
82+
^
83+
gap> h5 := {readonly x} -> x;
84+
Syntax error: 'readonly' argument of non-atomic function in stream:1
85+
h5 := {readonly x} -> x;
86+
^
87+
gap> h5 := {x, readonly y} -> x;
88+
Syntax error: 'readonly' argument of non-atomic function in stream:1
89+
h5 := {x, readonly y} -> x;
90+
^
91+
gap> h5 := {readwrite x, y} -> x;
92+
Syntax error: 'readwrite' argument of non-atomic function in stream:1
93+
h5 := {readwrite x, y} -> x;
94+
^
95+
gap> h5 := {x, readwrite y} -> x;
96+
Syntax error: 'readwrite' argument of non-atomic function in stream:1
97+
h5 := {x, readwrite y} -> x;
98+
^
99+
gap> h5 := {readwrite} -> x;
100+
Syntax error: 'readwrite' argument of non-atomic function in stream:1
101+
h5 := {readwrite} -> x;
102+
^
103+
gap> h5 := {readwrite readonly x} -> x;
104+
Syntax error: 'readwrite' argument of non-atomic function in stream:1
105+
h5 := {readwrite readonly x} -> x;
79106
gap> STOP_TEST("atomic_basic.tst", 260000);

0 commit comments

Comments
 (0)