From 78a6f3bd5c292afb68be7f4fbcd0e8c8ba0e3236 Mon Sep 17 00:00:00 2001 From: Peter Lesslie Date: Fri, 15 Apr 2022 14:57:09 -0500 Subject: Convert if...error checks to assert() in string arithmetic tests --- test cases/common/62 string arithmetic/meson.build | 14 +++----------- 1 file 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 59567de49..8ef350ede 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') -- cgit v1.2.3