summaryrefslogtreecommitdiffstats
path: root/systemtest/testdata/parser/testcases
blob: be7e51aa1b62ac78db3dcd5b9257df645b38620a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.