Skip to content

Commit f880467

Browse files
ameowliamyitcv
authored andcommitted
cue: fix output in ExampleContext
If the output comment block of a testable example is not the last comment block then nothing will be tested. This commit combines the comment blocks so that the example actually tests against the output. Fixes #1267 Closes #1385 Signed-off-by: Amelia Downs <[email protected]> Change-Id: I2e1d6f0e6445053988f88ff50249071f40744851 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/528130 Unity-Result: CUEcueckoo <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
1 parent 9982526 commit f880467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cue/examplecompile_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func ExampleContext() {
4444
// a: 2
4545
// b: 3
4646
// "a+b": 5
47-
47+
//
4848
// expressions
4949
// a + b: 5
5050
// a * b: 6

0 commit comments

Comments
 (0)