Update the style of more tests.

This commit is contained in:
Zoltan Somogyi
2020-10-06 19:20:18 +11:00
parent 7fec2d28a7
commit d23c4f74a3
71 changed files with 978 additions and 978 deletions

View File

@@ -48,9 +48,9 @@ test(String, !IO) :-
io.write_string("UTF-8:\t\t", !IO),
write_hex_ints(UTF8, !IO),
io.nl(!IO),
( string.from_utf8_code_unit_list(UTF8, String) ->
( if string.from_utf8_code_unit_list(UTF8, String) then
true
;
else
io.write_string("from_utf8_code_unit_list failed\n", !IO)
),
@@ -58,9 +58,9 @@ test(String, !IO) :-
io.write_string("UTF-16:\t\t", !IO),
write_hex_ints(UTF16, !IO),
io.nl(!IO),
( string.from_utf16_code_unit_list(UTF16, String) ->
( if string.from_utf16_code_unit_list(UTF16, String) then
true
;
else
io.write_string("from_utf16_code_unit_list failed\n", !IO)
),
io.nl(!IO).