Debian Codegraph @

execution/func_min_test.go

raw symbols SCIP
1 package execution_test
2
3 import (
4 "testing"
5
6 "github.com/tomwright/dasel/v3/model"
7 )
8
9 func TestFuncMin(t *testing.T) {
10 t.Run("int", testCase{
11 s: `min(1, 2, 3)`,
12 out: model.NewIntValue(1),
13 }.run)
14 t.Run("float", testCase{
15 s: `min(1f, 2.5, 3.5)`,
16 out: model.NewFloatValue(1),
17 }.run)
18 t.Run("mixed", testCase{
19 s: `min(1, 2f)`,
20 out: model.NewIntValue(1),
21 }.run)
22 }