diff options
author | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-03-07 21:02:32 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-03-10 08:55:22 -0500 |
commit | 07f467d0573d00a47e7d21a9a5cdf88ad813d1fc (patch) | |
tree | 33f0520b2d34d35d54387aacdf4998b2296750a8 /test cases | |
parent | 130adef77880fc99ee0a06cf3fba7696c7e7c7bc (diff) | |
download | meson-07f467d0573d00a47e7d21a9a5cdf88ad813d1fc.zip meson-07f467d0573d00a47e7d21a9a5cdf88ad813d1fc.tar.gz meson-07f467d0573d00a47e7d21a9a5cdf88ad813d1fc.tar.bz2 |
Switch fstring syntax to @..@ & limit fstring captures to int, str, float and bool
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/238 fstrings/meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test cases/common/238 fstrings/meson.build b/test cases/common/238 fstrings/meson.build index ffee053..2db2649 100644 --- a/test cases/common/238 fstrings/meson.build +++ b/test cases/common/238 fstrings/meson.build @@ -2,8 +2,6 @@ project('meson-test', 'c') n = 10 m = 'bar' -s = f'test {n} string ({n}): {m}' +s = f'test @n@ string (@@n@@): @m@' -if s != 'test 10 string (10): bar' - error('Incorrect string formatting') -endif +assert(s == 'test 10 string (@10@): bar', 'Incorrect string formatting') |