@@ -18,13 +18,13 @@ func TestContactPoints(t *testing.T) {
18
18
}
19
19
t .Log (pretty .PrettyFormat (ps ))
20
20
if len (ps ) != 2 {
21
- t .Errorf ("wrong number of contact points returned, got %#v " , ps )
21
+ t .Errorf ("wrong number of contact points returned, got %d " , len ( ps ) )
22
22
}
23
23
if ps [0 ].UID != "" {
24
- t .Errorf ("incorrect UID - expected %s on element %d, got %#v " , "" , 0 , ps )
24
+ t .Errorf ("incorrect UID - expected %s on element %d, got %s " , "" , 0 , ps [ 0 ]. UID )
25
25
}
26
26
if ps [1 ].UID != "rc5r0bjnz" {
27
- t .Errorf ("incorrect UID - expected %s on element %d, got %#v " , "rc5r0bjnz" , 0 , ps )
27
+ t .Errorf ("incorrect UID - expected %s on element %d, got %s " , "rc5r0bjnz" , 1 , ps [ 1 ]. UID )
28
28
}
29
29
})
30
30
@@ -39,10 +39,10 @@ func TestContactPoints(t *testing.T) {
39
39
}
40
40
t .Log (pretty .PrettyFormat (ps ))
41
41
if len (ps ) != 1 {
42
- t .Errorf ("wrong number of contact points returned, got %#v " , ps )
42
+ t .Errorf ("wrong number of contact points returned, got %d " , len ( ps ) )
43
43
}
44
44
if ps [0 ].UID != "rc5r0bjnz" {
45
- t .Errorf ("incorrect UID - expected %s on element %d, got %#v " , "rc5r0bjnz" , 0 , ps )
45
+ t .Errorf ("incorrect UID - expected %s on element %d, got %s " , "rc5r0bjnz" , 0 , ps [ 0 ]. UID )
46
46
}
47
47
})
48
48
@@ -57,7 +57,7 @@ func TestContactPoints(t *testing.T) {
57
57
}
58
58
t .Log (pretty .PrettyFormat (p ))
59
59
if p .UID != "rc5r0bjnz" {
60
- t .Errorf ("incorrect UID - expected %s got %#v " , "rc5r0bjnz" , p )
60
+ t .Errorf ("incorrect UID - expected %s got %s " , "rc5r0bjnz" , p . UID )
61
61
}
62
62
})
63
63
0 commit comments