Verifies: SYS-REQ-062 [malformed] High surrogate followed by invalid low surrogate shall return MalformedValueError.
(t *testing.T)
| 633 | // Verifies: SYS-REQ-062 [malformed] |
| 634 | // High surrogate followed by invalid low surrogate shall return MalformedValueError. |
| 635 | func TestInvalidSurrogateLow(t *testing.T) { |
| 636 | // \uD800\u0041 - valid unicode escape but not in low surrogate range |
| 637 | _, err := ParseString([]byte(`\uD800\u0041`)) |
| 638 | if !errors.Is(err, MalformedValueError) { |
| 639 | t.Fatalf("ParseString(invalid low surrogate) error = %v, want %v", err, MalformedValueError) |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | // Verifies: SYS-REQ-063 [malformed] |
| 644 | // Backslash at end of string shall return MalformedValueError. |
nothing calls this directly
no test coverage detected
searching dependent graphs…