Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andeya committed Sep 1, 2022
1 parent b2943f2 commit 787d816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,11 @@ func TestOption(t *testing.T) {
divide(2.0, 3.0).
Inspect(func(x float64) {
// Pattern match to retrieve the value
fmt.Println("Result:", x)
t.Log("Result:", x)
}).
InspectNone(func() {
fmt.Println("Cannot divide by 0")
t.Log("Cannot divide by 0")
})

}
```

Expand Down
5 changes: 2 additions & 3 deletions examples/option/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ func TestOption(t *testing.T) {
divide(2.0, 3.0).
Inspect(func(x float64) {
// Pattern match to retrieve the value
fmt.Println("Result:", x)
t.Log("Result:", x)
}).
InspectNone(func() {
fmt.Println("Cannot divide by 0")
t.Log("Cannot divide by 0")
})

}

func ExampleOption() {
Expand Down

0 comments on commit 787d816

Please sign in to comment.