Convert if...error checks to assert() in string arithmetic tests

pull/10103/head
Peter Lesslie 3 years ago committed by Eli Schwartz
parent 9b94045170
commit 78a6f3bd5c
  1. 14
      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')

Loading…
Cancel
Save