Skip to content

no tests for unicode codepoints vs. utf8-encoded characters #592

Open
@karenetheridge

Description

@karenetheridge

no time to create a PR right now, so dropping this here to come back to, and for discussion in case for some reason this is controversial:

schema: { "maxLength": 3 }

passing test: "ಠ_ಠ"
failing test: "ಠ__ಠ"

In unicode, is 0x0CA0 (\x{0ca0}), and is utf8-encoded to 3 bytes: 0xE0 0xB2 0xA0 (\x{e0}\x{b2}\x{a0}).

(and also a similar test for minLength)

Metadata

Metadata

Labels

enhancementAn enhancement to the tooling or structure of the suite (as opposed to a new test).missing testA request to add a test to the suite that is currently not covered elsewhere.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions