aboutsummaryrefslogtreecommitdiff
path: root/old-tests/eval/buildfile
blob: f26a9a01eb6cc09a63af30af64de375968f0e9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(./):
()

# Invalid.
#
#(foo
#(foo #comment

print ()
print ((foo)(bar))
print ((foo)   (bar))

print (foo\
bar)

# !=, == vs !, = recognition
#
print (=)
print (!)
print (= foo)
print (foo!)

# !=, == evaluation
#

# print (  == bar)
# print (foo == )

print (foo == bar)
print (foo == foo)
print (foo != bar)
print (foo != foo)

print (foo == (foo))
print ((foo bar) == foo bar)
print (foo != foo bar)
print ("" == '')

print ((foo != bar) baz)
print "foo equals bar is (foo == bar)"

foo = foo
print ($foo == foo)
print (bar != $foo)

print ([null])
print (([null]))
print ([uint64] 01)

n = [null]
print ($n == [null])
print ($N == [null])
print ([null] == [null])

print ($n == $N == true)

n =
print ($n == )
n = {}
print ($n == "")

#print ([uint64] 01 == [string] 01)

# <, <=, >, >= evaluation
#
print (a < b)
print (a b > a a)
print (123 <= 123)
print ([uint64] 02 > [uint64] 01)
print (a > [null])
print ([uint64] 02 > [null])
print ($build.version > 30000)