summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMamy Ratsimbazafy <mratsim@users.noreply.github.com>2017-09-16 20:09:44 +0200
committerDominik Picheta <dominikpicheta@googlemail.com>2017-09-16 19:09:44 +0100
commit5b8f33a9058b78e2e714ce341107ac52d98dcc5f (patch)
tree8eb98fe9ce18706e84366b8e2be8185b205924cc /tests
parent12af4a3f8ac290f5c6f7d208f1a1951a141449ff (diff)
downloadNim-5b8f33a9058b78e2e714ce341107ac52d98dcc5f.tar.gz
Reorder json `add` and `%`, fixes #6385 (#6388)
* Reorder json `add` and `%`, fixes https://github.com/nim-lang/Nim/issues/6385

* rename json test files
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/mjsonexternproc.nim10
-rw-r--r--tests/stdlib/tjsonexternproc.nim5
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/stdlib/mjsonexternproc.nim b/tests/stdlib/mjsonexternproc.nim
new file mode 100644
index 000000000..2967a1168
--- /dev/null
+++ b/tests/stdlib/mjsonexternproc.nim
@@ -0,0 +1,10 @@
+# Test case for https://github.com/nim-lang/Nim/issues/6385
+
+import json
+# export json
+
+proc foo*[T](a: T) =
+  let params = %*{
+    "data": [ 1 ]
+  }
+  echo $params
\ No newline at end of file
diff --git a/tests/stdlib/tjsonexternproc.nim b/tests/stdlib/tjsonexternproc.nim
new file mode 100644
index 000000000..ec90e580d
--- /dev/null
+++ b/tests/stdlib/tjsonexternproc.nim
@@ -0,0 +1,5 @@
+# Test case for https://github.com/nim-lang/Nim/issues/6385
+
+import mjsonexternproc
+# import json
+foo(1)
\ No newline at end of file
e the correct HTML file reference in "nim doc" generated idx files (#11326)' href='/ahoang/Nim/commit/nimdoc/tester.nim?h=devel&id=2f610d621f52fe83863c19ac65f7e1336bce838d'>2f610d621 ^
b017138c3 ^
3d20f1419 ^
b017138c3 ^
2f610d621 ^
3d20f1419 ^
2f610d621 ^

3d20f1419 ^
b9ed684dd ^
14656154e ^
2f610d621 ^
b017138c3 ^




20248a68f ^
b017138c3 ^




b017138c3 ^
2f610d621 ^













e2ab08603 ^
2f610d621 ^











e2ab08603 ^
2f610d621 ^
14656154e ^








e2ab08603 ^
08107c219 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92