aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-05-24 23:06:20 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-05-24 23:06:20 +0300
commit2a3a1ce8e001042f8b5018affc75e953da58bb26 (patch)
tree99a7d2b4cc1826ef92daf861f83ab3d91d5f4bd7 /test cases
parent1a0938cc250d6202ffb099fba40b58fb5880c90c (diff)
downloadmeson-2a3a1ce8e001042f8b5018affc75e953da58bb26.zip
meson-2a3a1ce8e001042f8b5018affc75e953da58bb26.tar.gz
meson-2a3a1ce8e001042f8b5018affc75e953da58bb26.tar.bz2
Join() convenience method for strings. Closes #552.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/42 string formatting/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/common/42 string formatting/meson.build b/test cases/common/42 string formatting/meson.build
index c2ee151..0d17448 100644
--- a/test cases/common/42 string formatting/meson.build
+++ b/test cases/common/42 string formatting/meson.build
@@ -51,3 +51,7 @@ assert(false.to_string() == 'false', 'bool string conversion failed')
assert(true.to_string('yes', 'no') == 'yes', 'bool string conversion with args failed')
assert(false.to_string('yes', 'no') == 'no', 'bool string conversion with args failed')
assert('@0@'.format(true) == 'true', 'bool string formatting failed')
+
+assert(' '.join(['a', 'b', 'c']) == 'a b c', 'join() array broken')
+assert(''.join(['a', 'b', 'c']) == 'abc', 'empty join() broken')
+assert(' '.join(['a']) == 'a', 'single join broken')