Retoor software development Projects Research SearchXNG
Register Sign In

5 lines
107 B
Plaintext
Raw Normal View History

fix: enforce string type validation in string_plus and remove coercion TODO - Replace silent null return with explicit string type check in string_plus native - Remove outdated TODO comments about string coercion from both num_plus and string_plus - Add test for basic string concatenation ("a" + "b") - Add test verifying runtime error when concatenating string with non-string ("a" + 123)
2014-04-09 06:17:49 +02:00
IO.print("a" + "b") // expect: ab
feat: add 8-bit string test cases across concatenation, contains, count, ends_with, equality, index_of, iterate, iterator_value, join, starts_with, subscript, and to_string Add comprehensive test coverage for strings containing null bytes (\0) to ensure all string operations correctly handle 8-bit clean data. Tests verify that concatenation, substring search, length counting, boundary checks, equality comparisons, index lookups, iteration, joining, and conversion to string all treat embedded null bytes as regular characters rather than terminators.
2015-02-04 13:58:16 +01:00
// 8-bit clean
IO.print(("a\0b" + "\0c") == "a\0b\0c") // expect: true
Reference in New Issue Copy Permalink
daf0728b12
wren/test/string/concatenation.wren
Response time: 147ms
Mail Licenses API