aboutsummaryrefslogtreecommitdiff
path: root/tests/if-else
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-01 12:07:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-01 12:07:18 +0200
commit0ed86c76239d4f2904ea4ae1a77902a9e0db2a6d (patch)
tree5e8e1d43a0140f5739b21be7cbe120ebb9360d4f /tests/if-else
parent12fc75188cc1f0a8c4c443c04e7a022131198c36 (diff)
Move old tests to old-tests/
Diffstat (limited to 'tests/if-else')
-rw-r--r--tests/if-else/buildfile158
-rw-r--r--tests/if-else/test.out16
-rwxr-xr-xtests/if-else/test.sh3
3 files changed, 0 insertions, 177 deletions
diff --git a/tests/if-else/buildfile b/tests/if-else/buildfile
deleted file mode 100644
index 25fabf0..0000000
--- a/tests/if-else/buildfile
+++ /dev/null
@@ -1,158 +0,0 @@
-#else # else without if
-#elif # elif without if
-#elif! # elif! without if
-#if # expected if-expression
-#if test # expected true or false
-#if true # expected {
-#x
-#if true # expected newline after {
-#{x
-#if true # expected newline after }
-#{
-#}x
-
-if true
-{
- print 1
-}
-else
-{
- print 0
-}
-
-if! true
-{
- print 0
-}
-else
-{
- print 1
-}
-
-if false
-{
- print 0
-}
-else
-{
- print 1
-}
-
-if false
-{
- print 0
-}
-elif true
-{
- print 1
-}
-else
-{
- print 0
-}
-
-if true
-{
- print 1
-}
-elif true
-{
- print 0
-}
-else
-{
- print 0
-}
-
-# Empty block
-#
-if true
-{
-}
-else
-{
- print 0
-}
-
-# Nested if-else
-#
-if true
-{
- if true
- {
- print 1
- }
-}
-else
-{
- if true
- {
- print 0
- }
-}
-
-t = true
-f = false
-
-if $t
-{
- print 1
-}
-
-if! $f
-{
- print 1
-}
-
-# With eval context.
-#
-if (foo == foo)
-{
- print 1
-}
-
-if(foo != bar)
-{
- print 1
-}
-
-if!(foo == bar)
-{
- print 1
-}
-
-if ([uint64] 01 == [uint64] 1)
-{
- print 1
-}
-
-# Single line.
-#
-
-#if true
-#} # expected if-line
-
-if true
- print 1
-
-if false
-
- print 0
-else
- # Comment.
- print 1
-
-if true
- if false
- print 0
- else
- print 1
-
-# EOF test.
-#
-./:
-
-if true
-{
- print 1
-}
diff --git a/tests/if-else/test.out b/tests/if-else/test.out
deleted file mode 100644
index 58501cb..0000000
--- a/tests/if-else/test.out
+++ /dev/null
@@ -1,16 +0,0 @@
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
diff --git a/tests/if-else/test.sh b/tests/if-else/test.sh
deleted file mode 100755
index c745b76..0000000
--- a/tests/if-else/test.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-b -q | diff --strip-trailing-cr -u test.out -