summary refs log tree commit diff stats
path: root/tests/misc/trawstr.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-04-09 22:56:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2014-04-09 22:56:18 +0200
commita690e7b26772a9bb8367acb451a6250449e666ab (patch)
tree9aca0024db9c75970c4dfac10c55f1961c21ca25 /tests/misc/trawstr.nim
parentd0f013477b16520eefff69b861d2f26744463880 (diff)
parenta157985e01cbf80383d5e50836072d70678c9de3 (diff)
downloadNim-a690e7b26772a9bb8367acb451a6250449e666ab.tar.gz
Merge pull request #1075 from flaviut/inlinedocs
Add some documentations and code examples in system
Diffstat (limited to 'tests/misc/trawstr.nim')
-rw-r--r--tests/misc/trawstr.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/misc/trawstr.nim b/tests/misc/trawstr.nim
new file mode 100644
index 000000000..ab2aae159
--- /dev/null
+++ b/tests/misc/trawstr.nim
@@ -0,0 +1,12 @@
+discard """
+  file: "trawstr.nim"
+  line: 10
+  errormsg: "closing \" expected"
+"""
+# Test the new raw strings:

+

+const

+  xxx = r"This is a raw string!"

+  yyy = "This not\" #ERROR

+
+