Skip to content

Commit

Permalink
cmd/cue: add test for filetype attributes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rogpeppe committed Sep 10, 2024
1 parent 3831017 commit 7ced6fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/cue/cmd/testdata/script/unknown_filetype_attrval.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Check that we cannot specify an arbitary unknown key-value pair
# in a filetype.
# TODO fix this test.

exec cue export cue+foo=bar: x.cue
# cmp stderr expect-stderr
-- x.cue --
true
-- expect-stderr --
unknown filetype foo

0 comments on commit 7ced6fd

Please sign in to comment.