Eliminate ranges
[sdnc/core.git] / sli / provider / src / test / resources / expression.tests
1 # $uni-circuit-id = abc123
2 # $uni-cir-units = 10
3 # value = 1
4 # $arg1 = 2
5 # $network.name = vCE0001.in
6 # $network.segment[0].provider-segmentation-id = 1212
7 # $network.segment[1].provider-segmentation-id = 1213
8 # $availability-zone = mtsnj-esx-az01
9 length($uni-circuit-id) > 0 # true
10 $uni-cir-units * 1000 * 100 / 100 # 10000
11 $uni-cir-units / 1000 # 0
12 $uni-cir-units - 100 # -90
13 $uni-cir-units + 100 # 110
14 (value * 3 - $arg1 > 0) and (length($uni-circuit-id) == 0) # true
15 'pg-'+$network.name # pg-vCE0001.in
16 $network.segment[0].provider-segmentation-id # 1212
17 toUpperCase($network.name) # VCE0001.IN
18 toLowerCase($network.name) # vce0001.in
19 toUpperCase(substr($availability-zone, 0, 5)) # MTSNJ
20 convertBase(1234, 10) # 1234
21 convertBase(10, 16, 10) # 16
22 convertBase(ZZ, 36, 10) # 1295
23 convertBase(10, 10, 36) # a
24 (0 - 1) * $arg1 # -1