diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-10-30 01:12:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 18:12:14 +0100 |
commit | 33e258c72fe9c06410b30c5bc4364626c4f6ecb1 (patch) | |
tree | 0d77ea4dad3f6ca0c4868e22ea440b8e5a569e19 | |
parent | 912d8f80ad5782ee371376f9f5664af3ac21995e (diff) | |
download | Nim-33e258c72fe9c06410b30c5bc4364626c4f6ecb1.tar.gz |
add tests for #7686 (#15771)
-rw-r--r-- | tests/stdlib/t7686.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/stdlib/t7686.nim b/tests/stdlib/t7686.nim new file mode 100644 index 000000000..c174dfb51 --- /dev/null +++ b/tests/stdlib/t7686.nim @@ -0,0 +1,9 @@ +import strutils + +type + MyEnum = enum + A, + a + +doAssert parseEnum[MyEnum]("A") == A +doAssert parseEnum[MyEnum]("a") == a |