1cRdpfPyzWzoQKo8zb3fky changeset

Changeset646265653437 (b)
ParentNone (a)
ab
0+Document template complex_keys.tpl file content:
0+
0+{
0+  "type": "#{pick(human,orc,elf,dwarf)}",
0+  "category": "#{pick(warrior,assassin,thief,wizard)}",
0+  "ratio": #{random_int(0, 1)}.#{random_int(0, 9)},
0+  "level": #{random_int(1, 20)},
0+  "data1": "#{random_string(40)}",
0+  "data2": "#{random_string(50)}",
0+  "data3": "#{random_string(35)}",
0+  "integers": [
0+      #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+      #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+      #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+      #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+      #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+      #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+      #{random_int(0, 100000)}, #{random_int(0, 100000)}
0+  ],
0+  "nested": {
0+      "coords": [
0+          { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
0+          { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
0+          { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
0+          { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
0+          { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} }
0+      ],
0+      "string1": "#{random_string(23)}",
0+      "string2": "#{random_string(12)}",
0+      "string3": "#{random_string(18)}",
0+      "dict": {
0+          "#{random_string(8)}": #{random_int(0, 20000)},
0+          "#{random_string(8)}": #{random_int(0, 70)},
0+          "#{random_string(8)}": #{random_int(0, 200)},
0+          "#{random_string(8)}": #{random_int(0, 300000)},
0+          "#{random_string(8)}": #{random_int(0, 200000)},
0+          "#{random_string(8)}": #{random_int(0, 9000)},
0+          "#{random_string(8)}": #{random_int(0, 10000)}
0+      },
0+      "values": [
0+          #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+          #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+          #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+          #{random_int(0, 100000)}, #{random_int(0, 100000)},
0+          #{random_int(0, 100000)}, #{random_int(0, 100000)}
0+      ]
0+  }
0+}
...
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
--- Revision None
+++ Revision 646265653437
@@ -0,0 +1,48 @@
+Document template complex_keys.tpl file content:
+
+{
+ "type": "#{pick(human,orc,elf,dwarf)}",
+ "category": "#{pick(warrior,assassin,thief,wizard)}",
+ "ratio": #{random_int(0, 1)}.#{random_int(0, 9)},
+ "level": #{random_int(1, 20)},
+ "data1": "#{random_string(40)}",
+ "data2": "#{random_string(50)}",
+ "data3": "#{random_string(35)}",
+ "integers": [
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)}
+ ],
+ "nested": {
+ "coords": [
+ { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
+ { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
+ { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
+ { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} },
+ { "x": #{random_int(0, 200000)}.#{random_int(0, 100)}, "y": #{random_int(0, 200000)}.#{random_int(0, 100)} }
+ ],
+ "string1": "#{random_string(23)}",
+ "string2": "#{random_string(12)}",
+ "string3": "#{random_string(18)}",
+ "dict": {
+ "#{random_string(8)}": #{random_int(0, 20000)},
+ "#{random_string(8)}": #{random_int(0, 70)},
+ "#{random_string(8)}": #{random_int(0, 200)},
+ "#{random_string(8)}": #{random_int(0, 300000)},
+ "#{random_string(8)}": #{random_int(0, 200000)},
+ "#{random_string(8)}": #{random_int(0, 9000)},
+ "#{random_string(8)}": #{random_int(0, 10000)}
+ },
+ "values": [
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)},
+ #{random_int(0, 100000)}, #{random_int(0, 100000)}
+ ]
+ }
+}