Skip to content

Commit

Permalink
Improve a test description
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Jun 26, 2018
1 parent d71fb12 commit a4fa88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 7-basic-oo/user/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestMethods(t *testing.T) {
t.Fatal("Cannot continue unless NewUser() returns a User struct")
}

assert.Equal(username("ringo"), u.Username(), "Username method returns username")
assert.Equal(username("ringo"), u.Username(), "Username method returns the correct username value")

u.SetUsername("shiina")
assert.Equal(username("shiina"), u.Username(), "Username method returns new username after call to SetUsername")
Expand Down

0 comments on commit a4fa88b

Please sign in to comment.