added an example test file
This commit is contained in:
parent
d8fc6d9793
commit
957780462f
17
genimage/pic/pic_test.go
Normal file
17
genimage/pic/pic_test.go
Normal file
@ -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")
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user