github.com/dolotech/hongbao@v0.0.0-20191130105438-fd59d7a5dda5/src/utils/assert/assert_test.go (about) 1 package assert 2 3 import ( 4 "testing" 5 ) 6 7 func TestLineNumbers(t *testing.T) { 8 Equal(t, "foo", "foo", "msg!") 9 //Equal(t, "foo", "bar", "this should blow up") 10 } 11 12 func TestNotEqual(t *testing.T) { 13 NotEqual(t, "foo", "bar", "msg!") 14 //NotEqual(t, "foo", "foo", "this should blow up") 15 }