aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorLaurin-Luis Lehning <65224843+e820@users.noreply.github.com>2021-03-07 04:59:38 +0100
committerXavier Claessens <xclaesse@gmail.com>2021-03-10 08:55:22 -0500
commit130adef77880fc99ee0a06cf3fba7696c7e7c7bc (patch)
treeb24d73969ee550251e29f08914cf80ec8d86cfc9 /test cases
parent442416db6fbb35d0293bc036642e10d36d9dfc00 (diff)
downloadmeson-130adef77880fc99ee0a06cf3fba7696c7e7c7bc.zip
meson-130adef77880fc99ee0a06cf3fba7696c7e7c7bc.tar.gz
meson-130adef77880fc99ee0a06cf3fba7696c7e7c7bc.tar.bz2
Add support for basic format strings
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/238 fstrings/meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/common/238 fstrings/meson.build b/test cases/common/238 fstrings/meson.build
new file mode 100644
index 0000000..ffee053
--- /dev/null
+++ b/test cases/common/238 fstrings/meson.build
@@ -0,0 +1,9 @@
+project('meson-test', 'c')
+
+n = 10
+m = 'bar'
+s = f'test {n} string ({n}): {m}'
+
+if s != 'test 10 string (10): bar'
+ error('Incorrect string formatting')
+endif