package netchan
-import (
- "fmt"
- "testing"
-)
+import "testing"
type value struct {
i int
}
for i := 0; i < count; i++ {
v := <-ch
- fmt.Printf("%v\n", v)
if v.i != 45+i || v.s != "hello" {
t.Errorf("export Receive: bad value: expected 4%d, hello; got %+v", 45+i, v)
}
}
for i := 0; i < count; i++ {
v := <-ch
- fmt.Printf("%v\n", v)
if v.i != 23+i || v.s != "hello" {
t.Errorf("importReceive: bad value: expected %d, hello; got %+v", 23+i, v)
}