summary refs log tree commit diff stats
path: root/tests/stdlib/t7686.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/t7686.nim')
-rw-r--r--tests/stdlib/t7686.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/stdlib/t7686.nim b/tests/stdlib/t7686.nim
new file mode 100644
index 000000000..9902cfcb5
--- /dev/null
+++ b/tests/stdlib/t7686.nim
@@ -0,0 +1,10 @@
+import std/strutils
+import std/assertions
+
+type
+  MyEnum = enum
+    A,
+    a
+
+doAssert parseEnum[MyEnum]("A") == A
+doAssert parseEnum[MyEnum]("a") == a