Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Jan 16, 2024
1 parent 895ea2d commit 12a18e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func TestSomething(t *testing.T) {
test.NotEqual(t, 42, 27) // Passes, these are not equal
test.NotEqual(t, 42, 42) // Fails

test.NearlyEqual(t, 3.0000000001, 3.0) // Look, floats handled easily!

err := doSomething()
test.Ok(t, err) // Fails if err != nil
test.Err(t, err) // Fails if err == nil
Expand Down Expand Up @@ -91,7 +93,7 @@ Large structs or long slices can often be difficult to compare using `reflect.De

```go
func TestDiff(t *testing.T) {
// Pretent these are very long, or are large structs
// Pretend these are very long, or are large structs
a := []string{"hello", "world"}
b := []string{"hello", "there"}

Expand Down

0 comments on commit 12a18e7

Please sign in to comment.