aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Lesslie <pclesslie@gmail.com>2022-04-15 14:57:09 -0500
committerEli Schwartz <eschwartz93@gmail.com>2022-05-01 12:47:37 -0400
commit78a6f3bd5c292afb68be7f4fbcd0e8c8ba0e3236 (patch)
tree4b25776ff819543d00f4e0be7350119e018a1978
parent9b94045170d499faf598e790c055e371e9c24437 (diff)
downloadmeson-78a6f3bd5c292afb68be7f4fbcd0e8c8ba0e3236.zip
meson-78a6f3bd5c292afb68be7f4fbcd0e8c8ba0e3236.tar.gz
meson-78a6f3bd5c292afb68be7f4fbcd0e8c8ba0e3236.tar.bz2
Convert if...error checks to assert() in string arithmetic tests
-rw-r--r--test cases/common/62 string arithmetic/meson.build14
1 files changed, 3 insertions, 11 deletions
diff --git a/test cases/common/62 string arithmetic/meson.build b/test cases/common/62 string arithmetic/meson.build
index 59567de..8ef350e 100644
--- a/test cases/common/62 string arithmetic/meson.build
+++ b/test cases/common/62 string arithmetic/meson.build
@@ -1,16 +1,8 @@
project('string arithmetic', 'c')
-if 'foo' + 'bar' != 'foobar'
- error('String concatenation is broken')
-endif
-
-if 'foo' + 'bar' + 'baz' != 'foobarbaz'
- error('Many-string concatenation is broken')
-endif
+assert('foo' + 'bar' == 'foobar')
+assert('foo' + 'bar' + 'baz' == 'foobarbaz')
a = 'a'
b = 'b'
-
-if a + b + 'c' != 'abc'
- error('String concat with variables is broken.')
-endif
+assert(a + b + 'c' == 'abc')