aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-05-24 15:44:23 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-05-24 22:21:39 +0800
commit641ff219cc0179165892eee2efaa2b88f3d4bf4c (patch)
tree7cb1c7065e57d9abf81c212b2b545df281276d59 /test
parentParser: support variable appending (diff)
downloadlibbash-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.cpp3
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)