diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2011-05-24 15:44:23 +0800 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2011-05-24 22:21:39 +0800 |
commit | 641ff219cc0179165892eee2efaa2b88f3d4bf4c (patch) | |
tree | 7cb1c7065e57d9abf81c212b2b545df281276d59 /test | |
parent | Parser: support variable appending (diff) | |
download | libbash-641ff219cc0179165892eee2efaa2b88f3d4bf4c.tar.gz libbash-641ff219cc0179165892eee2efaa2b88f3d4bf4c.tar.bz2 libbash-641ff219cc0179165892eee2efaa2b88f3d4bf4c.zip |
Core: support special variable $0
Diffstat (limited to 'test')
-rw-r--r-- | test/api_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/api_test.cpp b/test/api_test.cpp index e74313e..7e1bd23 100644 --- a/test/api_test.cpp +++ b/test/api_test.cpp @@ -60,6 +60,9 @@ TEST(libbashapi, legal_script) variables, functions); EXPECT_NE(0, result); + + EXPECT_STREQ((get_src_dir() + std::string("/scripts/source_false.sh")).c_str(), + variables["0"][0].c_str()); } TEST(libbashapi, preload) |