| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| #name: multiline interpolation |
| #evalPartial |
| -- in.cue -- |
| a1: """ |
| before |
| \(4) |
| after |
| """ |
| a2: """ |
| before |
| \(4) |
| |
| """ |
| a3: """ |
| |
| \(4) |
| after |
| """ |
| a4: """ |
| |
| \(4) |
| |
| """ |
| m1: """ |
| before |
| \( |
| 4) |
| after |
| """ |
| m2: """ |
| before |
| \( |
| 4) |
| |
| """ |
| m3: """ |
| |
| \( |
| |
| 4) |
| after |
| """ |
| m4: """ |
| |
| \( |
| 4) |
| |
| """ |
| -- out/def -- |
| a1: """ |
| before |
| 4 |
| after |
| """ |
| a2: """ |
| before |
| 4 |
| |
| """ |
| a3: """ |
| |
| 4 |
| after |
| """ |
| a4: """ |
| |
| 4 |
| |
| """ |
| m1: """ |
| before |
| 4 |
| after |
| """ |
| m2: """ |
| before |
| 4 |
| |
| """ |
| m3: """ |
| |
| 4 |
| after |
| """ |
| m4: """ |
| |
| 4 |
| |
| """ |
| -- out/export -- |
| a1: """ |
| before |
| 4 |
| after |
| """ |
| a2: """ |
| before |
| 4 |
| |
| """ |
| a3: """ |
| |
| 4 |
| after |
| """ |
| a4: """ |
| |
| 4 |
| |
| """ |
| m1: """ |
| before |
| 4 |
| after |
| """ |
| m2: """ |
| before |
| 4 |
| |
| """ |
| m3: """ |
| |
| 4 |
| after |
| """ |
| m4: """ |
| |
| 4 |
| |
| """ |
| -- out/yaml -- |
| a1: |- |
| before |
| 4 |
| after |
| a2: | |
| before |
| 4 |
| a3: |2- |
| |
| 4 |
| after |
| a4: |2 |
| |
| 4 |
| m1: |- |
| before |
| 4 |
| after |
| m2: | |
| before |
| 4 |
| m3: |2- |
| |
| 4 |
| after |
| m4: |2 |
| |
| 4 |
| -- out/json -- |
| {"a1":"before\n4\nafter","a2":"before\n4\n","a3":"\n4\nafter","a4":"\n4\n","m1":"before\n4\nafter","m2":"before\n4\n","m3":"\n4\nafter","m4":"\n4\n"} |
| -- out/legacy-debug -- |
| <0>{a1: "before\n4\nafter", a2: "before\n4\n", a3: "\n4\nafter", a4: "\n4\n", m1: "before\n4\nafter", m2: "before\n4\n", m3: "\n4\nafter", m4: "\n4\n"} |
| -- out/compile -- |
| --- in.cue |
| { |
| a1: "before |
| \(4) |
| after" |
| a2: "before |
| \(4) |
| " |
| a3: " |
| \(4) |
| after" |
| a4: " |
| \(4) |
| " |
| m1: "before |
| \(4) |
| after" |
| m2: "before |
| \(4) |
| " |
| m3: " |
| \(4) |
| after" |
| m4: " |
| \(4) |
| " |
| } |
| -- out/eval -- |
| (struct){ |
| a1: (string){ "before\n4\nafter" } |
| a2: (string){ "before\n4\n" } |
| a3: (string){ "\n4\nafter" } |
| a4: (string){ "\n4\n" } |
| m1: (string){ "before\n4\nafter" } |
| m2: (string){ "before\n4\n" } |
| m3: (string){ "\n4\nafter" } |
| m4: (string){ "\n4\n" } |
| } |