Skip to content

Commit 7ced6fd

Browse files
committed
cmd/cue: add test for filetype attributes
Currently, arbitrary key-value pairs can be specified in a filetype, but this isn't ideal behavior. Add a test for this, to be fixed in a subsequent CL. For #3283. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I2d18509e116f427a8eca19899329df0e68ab2255 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200900 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 3831017 commit 7ced6fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Check that we cannot specify an arbitary unknown key-value pair
2+
# in a filetype.
3+
# TODO fix this test.
4+
5+
exec cue export cue+foo=bar: x.cue
6+
# cmp stderr expect-stderr
7+
-- x.cue --
8+
true
9+
-- expect-stderr --
10+
unknown filetype foo

0 commit comments

Comments
 (0)