...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3#name: escaping
4#evalPartial
5-- in.cue --
6a: "foo\nbar"
7b: a
8
9// TODO: mimic http://exploringjs.com/es6/ch_template-literals.html#sec_introduction-template-literals
10-- out/def --
11a: """
12 foo
13 bar
14 """
15b: """
16 foo
17 bar
18 """
19-- out/export --
20a: """
21 foo
22 bar
23 """
24b: """
25 foo
26 bar
27 """
28-- out/yaml --
29a: |-
30 foo
31 bar
32b: |-
33 foo
34 bar
35-- out/json --
36{"a":"foo\nbar","b":"foo\nbar"}
37-- out/legacy-debug --
38<0>{a: "foo\nbar", b: "foo\nbar"}
39-- out/compile --
40--- in.cue
41{
42 a: "foo\nbar"
43 b: ć0;ać
44}
45-- out/eval/stats --
46Leaks: 0
47Freed: 3
48Reused: 1
49Allocs: 2
50Retain: 0
51
52Unifications: 3
53Conjuncts: 4
54Disjuncts: 3
55-- out/eval --
56(struct){
57 a: (string){ "foo\nbar" }
58 b: (string){ "foo\nbar" }
59}
View as plain text