Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: test/hmac_md5_test.dart

Issue 1151753006: Upgrade tests to the new version of test package (Closed) Base URL: https://github.com/dart-lang/crypto.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/base64_test.dart ('k') | test/hmac_sha1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/hmac_md5_test.dart
diff --git a/test/hmac_md5_test.dart b/test/hmac_md5_test.dart
index 15b941ff01f22898c059d10e29192b35c21580b2..f2a10d14ef2a7747fdb0b1822a4d3b030e428638 100644
--- a/test/hmac_md5_test.dart
+++ b/test/hmac_md5_test.dart
@@ -6,7 +6,7 @@
library hmac_md5_test;
import "package:crypto/crypto.dart";
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
void main() {
test('standard vectors', () {
@@ -20,7 +20,7 @@ void _testStandardVectors(inputs, keys, string_macs, macs) {
var h = new HMAC(new MD5(), keys[i]);
h.add(inputs[i]);
var d = h.close();
- expect(CryptoUtils.bytesToHex(d).startsWith(string_macs[i]), isTrue);
+ expect(CryptoUtils.bytesToHex(d), startsWith(string_macs[i]));
expect(h.verify(macs[i]), isTrue);
expect(h.verify(macs[(i + 1) % macs.length]), isFalse);
expect(() => h.verify([]), throws);
« no previous file with comments | « test/base64_test.dart ('k') | test/hmac_sha1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698