1 |
commit: 12e8d998d0f388ff0d9b3440eb0e70a5e9eb5859 |
2 |
Author: Mu Qiao <qiaomuf <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 25 14:54:17 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 14:55:59 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=12e8d998 |
7 |
|
8 |
Test: improve test coverage for bash_ast.cpp |
9 |
|
10 |
--- |
11 |
src/core/tests/bash_ast_test.cpp | 5 +++++ |
12 |
1 files changed, 5 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/src/core/tests/bash_ast_test.cpp b/src/core/tests/bash_ast_test.cpp |
15 |
index d5061ca..b2376fb 100644 |
16 |
--- a/src/core/tests/bash_ast_test.cpp |
17 |
+++ b/src/core/tests/bash_ast_test.cpp |
18 |
@@ -54,3 +54,8 @@ TEST(bash_ast, parse_arithmetics) |
19 |
interpreter walker; |
20 |
EXPECT_EQ(3, ast.interpret_with(walker, &bash_ast::walker_arithmetics)); |
21 |
} |
22 |
+ |
23 |
+TEST(bash_ast, illegal_path) |
24 |
+{ |
25 |
+ EXPECT_THROW(bash_ast("not_exist"), interpreter_exception); |
26 |
+} |