Skip to content

Commit

Permalink
Add comment clarifying why the given test cases are failing
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcervante committed Nov 2, 2022
1 parent 987fe04 commit dc40a38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hclsyntax/expression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,10 @@ func TestExpressionErrorMessages(t *testing.T) {
"The true and false result expressions must have consistent types. The 'false' value includes object attribute \"b\", which is absent in the 'true' value.",
},
{
// Failing cases for automatic collection conversions. HCL and cty
// will attempt to unify tuples into lists. We have to make sure
// the tuple inner types have no common base type, so we mix and
// match booleans and numbers and validate the error messages.
"true ? listOf2Tuple : listOf1Tuple",
&hcl.EvalContext{
Variables: map[string]cty.Value{
Expand Down

0 comments on commit dc40a38

Please sign in to comment.