1
0
mirror of https://github.com/google/uuid.git synced 2024-11-28 08:49:08 +02:00

use Error rather than Errorf when there are no formatting directives

This commit is contained in:
Shawn Smith 2015-10-14 15:59:59 +09:00
parent cccd189d45
commit 6ce35c2639

6
uuid_test.go Executable file → Normal file
View File

@ -316,7 +316,7 @@ func TestNodeID(t *testing.T) {
}
node1 := NodeID()
if node1 == nil {
t.Errorf("NodeID nil after SetNodeInterface\n", s)
t.Error("NodeID nil after SetNodeInterface", s)
}
SetNodeID(nid)
s = NodeInterface()
@ -325,10 +325,10 @@ func TestNodeID(t *testing.T) {
}
node2 := NodeID()
if node2 == nil {
t.Errorf("NodeID nil after SetNodeID\n", s)
t.Error("NodeID nil after SetNodeID", s)
}
if bytes.Equal(node1, node2) {
t.Errorf("NodeID not changed after SetNodeID\n", s)
t.Error("NodeID not changed after SetNodeID", s)
} else if !bytes.Equal(nid, node2) {
t.Errorf("NodeID is %x, expected %x\n", node2, nid)
}