summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-02-11 11:09:42 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-02-11 11:10:14 -0500
commitb30e1f47363f9b378c5860182ca570d66687488f (patch)
treedeb55b10e5061706ca350d9cffd07a24147e0e8a /tests
parent2495dbb6960c1fc94809ea68ae5c5cca82ac0f0e (diff)
downloadbfs-b30e1f47363f9b378c5860182ca570d66687488f.tar.xz
Add some tests for the operators themselves
Diffstat (limited to 'tests')
-rw-r--r--tests/test_a.out2
-rw-r--r--tests/test_and.out2
-rw-r--r--tests/test_bang.out16
-rw-r--r--tests/test_implicit_and.out2
-rw-r--r--tests/test_not.out16
-rw-r--r--tests/test_o.out13
-rw-r--r--tests/test_or.out13
-rw-r--r--tests/test_precedence.out4
8 files changed, 68 insertions, 0 deletions
diff --git a/tests/test_a.out b/tests/test_a.out
new file mode 100644
index 0000000..722962c
--- /dev/null
+++ b/tests/test_a.out
@@ -0,0 +1,2 @@
+basic/k/foo
+basic/l/foo
diff --git a/tests/test_and.out b/tests/test_and.out
new file mode 100644
index 0000000..722962c
--- /dev/null
+++ b/tests/test_and.out
@@ -0,0 +1,2 @@
+basic/k/foo
+basic/l/foo
diff --git a/tests/test_bang.out b/tests/test_bang.out
new file mode 100644
index 0000000..2501b2f
--- /dev/null
+++ b/tests/test_bang.out
@@ -0,0 +1,16 @@
+basic
+basic/a
+basic/b
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/c/d
+basic/e/f
+basic/g/h
+basic/k/foo/bar
+basic/l/foo/bar
+basic/l/foo/bar/baz
diff --git a/tests/test_implicit_and.out b/tests/test_implicit_and.out
new file mode 100644
index 0000000..722962c
--- /dev/null
+++ b/tests/test_implicit_and.out
@@ -0,0 +1,2 @@
+basic/k/foo
+basic/l/foo
diff --git a/tests/test_not.out b/tests/test_not.out
new file mode 100644
index 0000000..2501b2f
--- /dev/null
+++ b/tests/test_not.out
@@ -0,0 +1,16 @@
+basic
+basic/a
+basic/b
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/c/d
+basic/e/f
+basic/g/h
+basic/k/foo/bar
+basic/l/foo/bar
+basic/l/foo/bar/baz
diff --git a/tests/test_o.out b/tests/test_o.out
new file mode 100644
index 0000000..9a82ee2
--- /dev/null
+++ b/tests/test_o.out
@@ -0,0 +1,13 @@
+basic
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/g/h
+basic/j/foo
+basic/k/foo
+basic/l/foo
+basic/l/foo/bar
diff --git a/tests/test_or.out b/tests/test_or.out
new file mode 100644
index 0000000..9a82ee2
--- /dev/null
+++ b/tests/test_or.out
@@ -0,0 +1,13 @@
+basic
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/g/h
+basic/j/foo
+basic/k/foo
+basic/l/foo
+basic/l/foo/bar
diff --git a/tests/test_precedence.out b/tests/test_precedence.out
new file mode 100644
index 0000000..b3d7a51
--- /dev/null
+++ b/tests/test_precedence.out
@@ -0,0 +1,4 @@
+basic/k/foo
+basic/l/foo
+basic/k/foo/bar
+basic/l/foo/bar/baz