summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-11-30 11:00:51 +0100
committerAraq <rumpf_a@web.de>2016-11-30 11:00:51 +0100
commitb1b2dd606ba736775868853657e331f287423dee (patch)
treee482389e1e9bf4b9b2c1b6fbad62d3209c463453 /tests/modules
parent5c46f268802217b774df23d4dcf07a6f7b0ebc20 (diff)
downloadNim-b1b2dd606ba736775868853657e331f287423dee.tar.gz
fixes #5076
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/UpperCased.nim6
-rw-r--r--tests/modules/tuppercased.nim8
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/modules/UpperCased.nim b/tests/modules/UpperCased.nim
new file mode 100644
index 000000000..7beffcc5f
--- /dev/null
+++ b/tests/modules/UpperCased.nim
@@ -0,0 +1,6 @@
+
+# bug #5076
+
+var str*: string
+
+UpperCased.str = "hello"
diff --git a/tests/modules/tuppercased.nim b/tests/modules/tuppercased.nim
new file mode 100644
index 000000000..65f41becd
--- /dev/null
+++ b/tests/modules/tuppercased.nim
@@ -0,0 +1,8 @@
+discard """
+  output: "hello"
+"""
+
+import UpperCased
+
+# stress normalization rules:
+echo Upper_Cased.str