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

Unified Diff: test/hmac_sha256_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/hmac_sha1_test.dart ('k') | test/sha1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/hmac_sha256_test.dart
diff --git a/test/hmac_sha256_test.dart b/test/hmac_sha256_test.dart
index fa31420731195f8959c4801e5bf51ce0b56e1de1..f2a7768b91811ff27d3ff596cc75120d75e5f24b 100644
--- a/test/hmac_sha256_test.dart
+++ b/test/hmac_sha256_test.dart
@@ -5,8 +5,8 @@
// Library tag to allow the test to run on Dartium.
library hmac_sha256_test;
-import "package:unittest/unittest.dart";
import "package:crypto/crypto.dart";
+import "package:test/test.dart";
part 'hmac_sha256_test_vectors.dart';
@@ -22,6 +22,6 @@ void _testStandardVectors(inputs, keys, macs) {
var hmac = new HMAC(new SHA256(), keys[i]);
hmac.add(inputs[i]);
var d = hmac.close();
- expect(CryptoUtils.bytesToHex(d).startsWith(macs[i]), isTrue);
+ expect(CryptoUtils.bytesToHex(d), startsWith(macs[i]));
}
}
« no previous file with comments | « test/hmac_sha1_test.dart ('k') | test/sha1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698