summaryrefslogtreecommitdiffstats
path: root/systemtest/testdata/parser/testcases
diff options
context:
space:
mode:
Diffstat (limited to 'systemtest/testdata/parser/testcases')
-rw-r--r--systemtest/testdata/parser/testcases21
1 files changed, 21 insertions, 0 deletions
diff --git a/systemtest/testdata/parser/testcases b/systemtest/testdata/parser/testcases
new file mode 100644
index 0000000..be7e51a
--- /dev/null
+++ b/systemtest/testdata/parser/testcases
@@ -0,0 +1,21 @@
+pp_long.ql@ select 2++1 from ImgCharA as i @ -- test unary and binary operators on long.
+pm_long.ql@ select 2+-1 from ImgCharA as i @ -- test unary and binary operators on long.
+mp_long.ql@ select 2-+1 from ImgCharA as i @ -- test unary and binary operators on long.
+mm_long.ql@ select 2++1 from ImgCharA as i @ -- test unary and binary operators on long. @ -- Caution: don't use -- as it introduces comments.
+nn_long.ql@ select 0 from ImgCharA as i @ -- test long zero.
+np_long.ql@ select +0 from ImgCharA as i @ -- test long zero.
+nm_long.ql@ select -0 from ImgCharA as i @ -- test long zero.
+on_long.ql@ select 1 from ImgCharA as i @ -- test long one.
+op_long.ql@ select +1 from ImgCharA as i @ -- test long one.
+om_long.ql@ select -1 from ImgCharA as i @ -- test long one.
+p1_long.ql@ select 2+1 from ImgCharA as i @ -- test basic arithmetic.
+p2_long.ql@ select -2+1 from ImgCharA as i @ -- test basic arithmetic.
+m1_long.ql@ select 2-1 from ImgCharA as i @ -- test basic arithmetic.
+m2_long.ql@ select -2-1 from ImgCharA as i @ -- test basic arithmetic.
+sqrt_1.ql@ select sqrt(2.0d) from ImgCharA as i @ -- test square root.
+sqrt_2.ql@ select sqrt(1.0d + 2.0d) from ImgCharA as i @ -- test square root.
+sqrt_3.ql@ select sqrt(sqrt(4.0d)) from ImgCharA as i @ -- test square root.
+sqrt_4.ql@ select sqrt(0.0d) from ImgCharA as i @ -- test square root.
+sqrt_5.ql@ select 1.0d + sqrt(2.0d) from ImgCharA as i @ -- test square root.
+sqrt_6.ql@ select sqrt(2.0d) - 1.0d from ImgCharA as i @ -- test square root.
+sqrt_nan.ql@ select sqrt(-10.0d) from ImgCharA as i @ -- negative argument leads to NaN. \ No newline at end of file