Skip to content

Commit

Permalink
ci: upgrade examples to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
bearstonedev committed Feb 20, 2024
1 parent bd6cbc3 commit fb09dd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module examples

go 1.22.0

require github.com/bearstonedev/gotest v0.2.12
require github.com/bearstonedev/gotest v0.3.12

require github.com/google/go-cmp v0.6.0 // indirect
4 changes: 2 additions & 2 deletions examples/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/bearstonedev/gotest v0.2.12 h1:CIVr/4nO7wnCDx/FWiVOm6M5NpZ3mXRdbcLSzprzV+k=
github.com/bearstonedev/gotest v0.2.12/go.mod h1:AODE/Op5XWghhTQTvE4U42ZzboNlxqIKdKuucp0HiY0=
github.com/bearstonedev/gotest v0.3.12 h1:8suN51YTRifzOhNo/G8YPNJpl0TATWMWTpe7kL7YG7s=
github.com/bearstonedev/gotest v0.3.12/go.mod h1:AODE/Op5XWghhTQTvE4U42ZzboNlxqIKdKuucp0HiY0=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
2 changes: 1 addition & 1 deletion examples/tests-example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestShouldSubtractTwoNumbers(t *testing.T) {
Scenario("2 - 2 should be 0", 2, 2, 0).
Scenario("1 - 0 should be 1", 1, 0, 1).
Scenario("0 - 1 should be -1", 0, 1, -1).
Test(func(shouldBe Assertions, args []any) {
Test(func(shouldBe Assertions, args ...any) {
expectedOutput := args[2].(int)
actualOutput := sut.Subtract(args[0].(int), args[1].(int))
shouldBe.Equal(actualOutput, expectedOutput)
Expand Down

0 comments on commit fb09dd8

Please sign in to comment.