aboutsummaryrefslogtreecommitdiff
path: root/old-tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-05 15:09:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-05 15:09:04 +0200
commit54870fb76b5f59cc2e6d69a8c7a8ef17853a0029 (patch)
tree770b01aa56348ec75f17fb834a2a7123ba9c3f73 /old-tests
parentef7cb7ea3e6fcb21a4fcf38602b3f43f03232ace (diff)
Add comma, ternary, logical operators support in eval context
Diffstat (limited to 'old-tests')
-rw-r--r--old-tests/eval/buildfile72
-rw-r--r--old-tests/eval/test.out36
-rwxr-xr-xold-tests/eval/test.sh3
-rwxr-xr-xold-tests/test.sh1
4 files changed, 0 insertions, 112 deletions
diff --git a/old-tests/eval/buildfile b/old-tests/eval/buildfile
deleted file mode 100644
index f26a9a0..0000000
--- a/old-tests/eval/buildfile
+++ /dev/null
@@ -1,72 +0,0 @@
-(./):
-()
-
-# 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)
diff --git a/old-tests/eval/test.out b/old-tests/eval/test.out
deleted file mode 100644
index 555853f..0000000
--- a/old-tests/eval/test.out
+++ /dev/null
@@ -1,36 +0,0 @@
-
-foobar
-foo bar
-foobar
-=
-!
-= foo
-foo!
-false
-true
-true
-false
-true
-true
-true
-true
-true baz
-foo equals bar is false
-true
-true
-[null]
-[null]
-1
-true
-true
-true
-true
-true
-true
-true
-true
-true
-true
-true
-true
-true
diff --git a/old-tests/eval/test.sh b/old-tests/eval/test.sh
deleted file mode 100755
index c745b76..0000000
--- a/old-tests/eval/test.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-b -q | diff --strip-trailing-cr -u test.out -
diff --git a/old-tests/test.sh b/old-tests/test.sh
index ebd7b47..6a8e39c 100755
--- a/old-tests/test.sh
+++ b/old-tests/test.sh
@@ -14,7 +14,6 @@ function test ()
test "amalgam/unnamed"
test "escaping"
-test "eval"
test "if-else"
test "keyword"
test "names"