Beispiel #1
0
func TestEmpoweredAssertWithLiteral(t *testing.T) {
	piyo := "toto"
	assert.PowerOk(t, assert.Capt(piyo, "piyo") == "fuga", "powerassert.Ok(t, piyo == \"fuga\")")
}
Beispiel #2
0
func TestEmpoweredAssert(t *testing.T) {
	hoge := "foo"
	fuga := "bar"
	assert.PowerOk(t, assert.Capt(hoge, "hoge") == assert.Capt(fuga, "fuga"), "powerassert.Ok(t, hoge == fuga)")
}