18 lines
250 B
Go
18 lines
250 B
Go
package pic
|
|
|
|
import "testing"
|
|
|
|
func TestExpectedFailure(t *testing.T) {
|
|
const a, b = 3, 2
|
|
if a != b {
|
|
t.Error("contrived failure")
|
|
}
|
|
}
|
|
|
|
func TestExpectedSuccess(t *testing.T) {
|
|
const a, b = 3, 3
|
|
if a != b {
|
|
t.Error("contrived failure")
|
|
}
|
|
}
|