diff --git a/ffdhall_test.go b/ffdhall_test.go index 43e75413672baccf24da01c5b488fc071b6b94d6..f1dfbec7b9ab438c4b6247da64aa5a72ce1b42fc 100644 --- a/ffdhall_test.go +++ b/ffdhall_test.go @@ -2,6 +2,8 @@ package ffdhall import ( "testing" + "time" + "testing" "time" "github.com/peterbourgon/ff/v3" @@ -31,13 +33,6 @@ want: fftest.Vars{S: "s", I: 10, B: true, D: 5 * time.Second}, }, { - "github.com/peterbourgon/ff/v3" - args: []string{}, - file: "testdata/typed.dhall", - want: fftest.Vars{S: "s", I: 10, B: true, D: 5 * time.Second}, - }, - { - ) args: []string{}, file: "testdata/value_arrays.dhall", @@ -56,6 +51,7 @@ vars.ParseError = ff.Parse(fs, testcase.args, ff.WithConfigFile(testcase.file), ff.WithConfigFileParser(DhallParser), ) + fmt.Println(vars.ParseError) fftest.Compare(t, &testcase.want, vars) }) } diff --git a/testdata/typed.dhall b/testdata/typed.dhall deleted file mode 100644 index b9fe64b0e76fb4da60f4835bf0084addffa795f8..0000000000000000000000000000000000000000 --- a/testdata/typed.dhall +++ /dev/null @@ -1,3 +0,0 @@ -let Test = { s : Text, i : Natural, b : Bool, d : Text } - -in { s = "s", i = 10, b = True, d = "5s" } : Test diff --git a/testdata/value_arrays.dhall b/testdata/value_arrays.dhall index 2e0b106c5bc11be95966f76429dd8038c64eddb1..496e20390cf0b9f2c2ae6bc57b4bbc26be4351bd 100644 --- a/testdata/value_arrays.dhall +++ b/testdata/value_arrays.dhall @@ -1,5 +1,5 @@ { s = [ "a", "bb" ] -, i = [ 10, 11, 12 ] +, i = [ "10", "11", "12" ] , b = [ False, True ] , d = [ "10m", "5s" ] , x = [ "a", "B", "👍" ]