added an example test file
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user