diff options
Diffstat (limited to 'shell/ash_test/ash-misc/and-or.tests')
-rwxr-xr-x | shell/ash_test/ash-misc/and-or.tests | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/and-or.tests b/shell/ash_test/ash-misc/and-or.tests new file mode 100755 index 000000000..485458abe --- /dev/null +++ b/shell/ash_test/ash-misc/and-or.tests | |||
@@ -0,0 +1,34 @@ | |||
1 | false || echo a1 | ||
2 | false && echo a2 | ||
3 | true || echo a3 | ||
4 | true && echo a4 | ||
5 | |||
6 | false || echo b1 || echo b2 | ||
7 | false || echo b3 && echo b4 | ||
8 | false && echo b5 || echo b6 | ||
9 | false && echo b7 && echo b8 | ||
10 | |||
11 | true || echo c1 || echo c2 | ||
12 | true || echo c3 && echo c4 | ||
13 | true && echo c5 || echo c6 | ||
14 | true && echo c7 && echo c8 | ||
15 | |||
16 | false || false || echo ff1 | ||
17 | false || false && echo ff2 | ||
18 | false && false || echo ff3 | ||
19 | false && false && echo ff4 | ||
20 | |||
21 | false || true || echo ft1 | ||
22 | false || true && echo ft2 | ||
23 | false && true || echo ft3 | ||
24 | false && true && echo ft4 | ||
25 | |||
26 | true || false || echo tf1 | ||
27 | true || false && echo tf2 | ||
28 | true && false || echo tf3 | ||
29 | true && false && echo tf4 | ||
30 | |||
31 | true || true || echo tt1 | ||
32 | true || true && echo tt2 | ||
33 | true && true || echo tt3 | ||
34 | true && true && echo tt4 | ||