summaryrefslogtreecommitdiff
path: root/tests/general/sets.std
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-01-27 23:51:56 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-01-27 23:51:56 +0000
commit6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1 (patch)
tree926065cf45450116098db664e3c61dced9e1f21a /tests/general/sets.std
downloadicon-6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1.tar.gz
Initial upstream version 9.4.3upstream/9.4.3
Diffstat (limited to 'tests/general/sets.std')
-rw-r--r--tests/general/sets.std43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/general/sets.std b/tests/general/sets.std
new file mode 100644
index 0000000..4209e0a
--- /dev/null
+++ b/tests/general/sets.std
@@ -0,0 +1,43 @@
+ empty : 0 :
+set
+ insert : 1 : &null
+&null
+&null
+ insert : 1 : &null
+ delete : 0 :
+ delete : 0 :
+
+ x : 3 : 1 2 4
+ y : 3 : 1 2 5
+ x ++ y : 4 : 1 2 4 5
+ y ++ x : 4 : 1 2 4 5
+ x -- y : 1 : 4
+ y -- x : 1 : 5
+ x ** y : 2 : 1 2
+ y ** x : 2 : 1 2
+
+ empty : 0 :
+ + 1 : 1 : 1
+ + 2 : 2 : 1 2
+ + c : 3 : 1 2 "c"
+ - 3 : 3 : 1 2 "c"
+ - 1 : 2 : 2 "c"
+ - 1 : 2 : 2 "c"
+ + 2 : 2 : 2 "c"
+ + 1 : 3 : 1 2 "c"
+ + 7.0 : 4 : 1 2 7.0 "c"
+ + 7.0 : 4 : 1 2 7.0 "c"
+ + 'cs' : 5 : 1 2 7.0 "c" 'cs'
+ + 'cs' : 5 : 1 2 7.0 "c" 'cs'
+ x = : 5 : 1 2 7.0 "c" 'cs'
+
+ 3,a,4 : 3 : 3 4 "a"
+ y ++ x : 8 : 1 2 3 4 7.0 "a" "c" 'cs'
+ y ** x : 0 :
+ y -- x : 3 : 3 4 "a"
+ x -- y : 5 : 1 2 7.0 "c" 'cs'
+
+ z from !y : 3 : 3 4 "a"
+
+ x : 7 : 1 2 3 5 6 7 9
+ y : 7 : 0 2 3 4 5 6 9