diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-15 20:40:31 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-15 20:40:57 -0700 |
commit | 8b8a970098d49334990e6284629eed5d89c43f4e (patch) | |
tree | f9e93ddc976d424d101d203e56f53ebd3c7e9e83 /fish_tests.cpp | |
parent | ebfcee6e67ef9061063ab27fff096f6b705a445b (diff) |
Made builtin_test handle parenthesis
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index 2a6fd3df..f241dd66 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -641,7 +641,9 @@ static void test_test() { it would be false. */ assert(run_test_test(0, L"0 = 0 -o 0 = 1 -a 0 = 2")); assert(run_test_test(0, L"-n 5 -o 0 = 1 -a 0 = 2")); - + assert(run_test_test(1, L"( 0 = 0 -o 0 = 1 ) -a 0 = 2")); + assert(run_test_test(0, L"0 = 0 -o ( 0 = 1 -a 0 = 2 )")); + /* A few lame tests for permissions; these need to be a lot more complete. */ assert(run_test_test(0, L"-e /bin/ls")); assert(run_test_test(1, L"-e /bin/ls_not_a_path")); |