Skip to content

Commit

Permalink
feat: add false case test
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Mar 31, 2024
1 parent 9c015f1 commit 08fb585
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/provider/contains_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,16 @@ output "test" {
Config: `
output "test" {
value = provider::assert::contains([1, 2, 3], 45)
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckOutput("test", "false"),
),
},
{
Config: `
output "test" {
value = provider::assert::contains([true, true], false)
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
Expand Down

0 comments on commit 08fb585

Please sign in to comment.