diff --git a/README.md b/README.md index fe42675..48661b8 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ func main() { You can download `ajson` cli from the [release page](https://github.com/spyzhov/ajson/releases), or install from the source: ```shell script -go get github.com/spyzhov/ajson/cmd/ajson@v0.6.0 +go get github.com/spyzhov/ajson/cmd/ajson@v0.7.0 ``` Usage: diff --git a/cmd/ajson/main.go b/cmd/ajson/main.go index 9d160cb..c3e5e4b 100644 --- a/cmd/ajson/main.go +++ b/cmd/ajson/main.go @@ -12,7 +12,7 @@ import ( "github.com/spyzhov/ajson" ) -var version = "v0.6.0" +var version = "v0.7.0" func usage() { text := `` diff --git a/math_test.go b/math_test.go index d880d90..702cdba 100644 --- a/math_test.go +++ b/math_test.go @@ -456,6 +456,9 @@ func TestFunctions2(t *testing.T) { "e": NumericNode("", 3), }), result: NumericNode("", 6)}, {name: "sum array blank", fname: "sum", value: ArrayNode("test", []*Node{}), result: NumericNode("", 0)}, + + {name: "rand", fname: "rand", value: StringNode("test", "test"), fail: true}, + {name: "randint", fname: "randint", value: StringNode("test", "test"), fail: true}, } for _, test := range tests { t.Run(test.name, func(t *testing.T) {