From 37ea590bd3544ca7ed4f181b37fe3622abaeada0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 21 Nov 2026 12:20:02 +0100 Subject: Properly report invalid UTF-8 encoding --- test/asset/parser/invalid-utf8.et | 4 ++++ test/asset/parser/utf8.et | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 test/asset/parser/invalid-utf8.et create mode 100644 test/asset/parser/utf8.et (limited to 'test/asset') diff --git a/test/asset/parser/invalid-utf8.et b/test/asset/parser/invalid-utf8.et new file mode 100644 index 0000000..7f6b4fd --- /dev/null +++ b/test/asset/parser/invalid-utf8.et @@ -0,0 +1,4 @@ +# Script with invalid UTF-8: the byte 0xE9 is Latin-1 é, not valid UTF-8 +test Test: + let x = "café" + guard (x == x) diff --git a/test/asset/parser/utf8.et b/test/asset/parser/utf8.et new file mode 100644 index 0000000..d0c06e1 --- /dev/null +++ b/test/asset/parser/utf8.et @@ -0,0 +1,4 @@ +# Script with valid non-ASCII UTF-8 content: Šíleně žluťoučký kůň … +test Test: + let x = "… úpěl ďábelské ódy “‘quoted’”" + guard (x == x) -- cgit v1.2.3