Skip to content

Commit

Permalink
fix tests & update version (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
spyzhov authored Dec 30, 2021
1 parent 2fdc269 commit 0d5a0e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion cmd/ajson/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/spyzhov/ajson"
)

var version = "v0.6.0"
var version = "v0.7.0"

func usage() {
text := ``
Expand Down
3 changes: 3 additions & 0 deletions math_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0d5a0e9

Please sign in to comment.