Skip to content

Commit

Permalink
stretchr#946 Colorize Expected and Actual in Assert & Require + Minor F…
Browse files Browse the repository at this point in the history
  • Loading branch information
vaguecoder committed Jul 17, 2022
1 parent 181cea6 commit 3f1aaba
Show file tree
Hide file tree
Showing 6 changed files with 718 additions and 73 deletions.
2 changes: 1 addition & 1 deletion assert/assertion_compare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func Test_containsValue(t *testing.T) {

func TestComparingMsgAndArgsForwarding(t *testing.T) {
msgAndArgs := []interface{}{"format %s %x", "this", 0xc001}
expectedOutput := "format this c001\n"
expectedOutput := "format this c001"
funcs := []func(t TestingT){
func(t TestingT) { Greater(t, 1, 2, msgAndArgs...) },
func(t TestingT) { GreaterOrEqual(t, 1, 2, msgAndArgs...) },
Expand Down
2 changes: 1 addition & 1 deletion assert/assertion_order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func TestIsNonDecreasing(t *testing.T) {

func TestOrderingMsgAndArgsForwarding(t *testing.T) {
msgAndArgs := []interface{}{"format %s %x", "this", 0xc001}
expectedOutput := "format this c001\n"
expectedOutput := "format this c001"
collection := []int{1, 2, 1}
funcs := []func(t TestingT){
func(t TestingT) { IsIncreasing(t, collection, msgAndArgs...) },
Expand Down

0 comments on commit 3f1aaba

Please sign in to comment.