summaryrefslogtreecommitdiff
path: root/test/chan/sieve2.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/chan/sieve2.go')
-rw-r--r--test/chan/sieve2.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/chan/sieve2.go b/test/chan/sieve2.go
index e612ff3c3..7f2ed9157 100644
--- a/test/chan/sieve2.go
+++ b/test/chan/sieve2.go
@@ -165,7 +165,8 @@ func main() {
a := []int{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97}
for i := 0; i < len(a); i++ {
if x := <-primes; x != a[i] {
- panic(x, " != ", a[i])
+ println(x, " != ", a[i])
+ panic("fail")
}
}
}