Debian Codegraph @

execution/func_contains_test.go

raw symbols SCIP
1 package execution_test
2
3 import (
4 "github.com/tomwright/dasel/v3/model"
5 _ "github.com/tomwright/dasel/v3/parsing/json"
6 "testing"
7 )
8
9 func TestFuncContains(t *testing.T) {
10 t.Run("array true", testCase{
11 s: `[1,2,3,4,5].contains(3)`,
12 out: model.NewBoolValue(true),
13 }.run)
14 t.Run("array false", testCase{
15 s: `[1,2,3,4,5].contains(6)`,
16 out: model.NewBoolValue(false),
17 }.run)
18 }