fix cmpIgnoreStyle bug (#16392)

This commit is contained in:
flywind 2020-12-18 09:29:36 -06:00 • committed by GitHub
commit 78acf1becb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -58,3 +58,14 @@ block:
for i in 0 .. m.len-1:
for j in 0 .. m[i].len-1:
doAssert getString(m[i][j]) == myArr[i][j]
block:
type
Test = enum
Hello, he_llo
var x = hello
var y = x.toAny
doAssert getEnumOrdinal(y, "Hello") == 0
doAssert getEnumOrdinal(y, "hello") == 1