aboutsummaryrefslogtreecommitdiffstats
path: root/asspb_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'asspb_test.go')
-rw-r--r--asspb_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/asspb_test.go b/asspb_test.go
index 2425571..b974b2f 100644
--- a/asspb_test.go
+++ b/asspb_test.go
@@ -151,6 +151,10 @@ can just span multiple lines"`,
msg: `field: '\x0a'`,
want: map[string]any{"field": "\n"},
}, {
+ desc: "StringHexHighByte",
+ msg: `field: "\xe4\xb8\x96"`,
+ want: map[string]any{"field": "世"},
+ }, {
desc: "StringUnicode",
msg: `field: '\u2014'`,
want: map[string]any{"field": "—"},
@@ -265,6 +269,12 @@ func TestUnmarshal_Invalid(t *testing.T) {
}, {
desc: "IntLeadingZero",
msg: `field: 0644`,
+ }, {
+ desc: "InvalidOctal",
+ msg: `field: "\777"`,
+ }, {
+ desc: "InvalidUTF8",
+ msg: `field: "\x80"`,
}} {
t.Run(tc.desc, func(t *testing.T) {
t.Parallel()