ocfbdec := NewOCFBDecrypter(block, prefix, resync)
if ocfbdec == nil {
- t.Error("NewOCFBDecrypter failed (resync: %t)", resync)
+ t.Errorf("NewOCFBDecrypter failed (resync: %t)", resync)
return
}
plaintextCopy := make([]byte, len(plaintext))
got := fmt.Sprintf("%x", out)
if got != test.hexOutput {
- t.Errorf("%d: got:%s want:%s", test.hexOutput, got)
+ t.Errorf("%d: got:%s want:%s", i, test.hexOutput, got)
}
}
}
return
default:
- log.Panic("Unexpected branch token %v", s.Tok)
+ log.Panicf("Unexpected branch token %v", s.Tok)
}
a.flow.put1(false, pc)
continue
}
if strings.Index(err.String(), c.err) < 0 {
- t.Error("unexpected error: expected %q, got %q", c.err, err.String())
+ t.Errorf("unexpected error: expected %q, got %q", c.err, err.String())
continue
}
} else {