utf8: remove unused UTF8_CHAR_LEN macro and add a simple utf8 test

This commit is contained in:
Alexander Medvednikov 2019-07-10 09:07:04 +02:00
parent 68228f9977
commit e1ddac1590
3 changed files with 7 additions and 3 deletions

View file

@ -3017,7 +3017,7 @@ fn (p mut Parser) assert_statement() {
filename := p.file_path
p.genln(';\n
if (!$tmp) {
puts("\\x1B[31mFAI.leD: $p.cur_fn.name() in $filename:$p.scanner.line_nr\\x1B[0m");
puts("\\x1B[31mFAILED: $p.cur_fn.name() in $filename:$p.scanner.line_nr\\x1B[0m");
g_test_ok = 0 ;
// TODO
// Maybe print all vars in a test function if it fails?