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

Unified Diff: test/base64_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 | « pubspec.yaml ('k') | test/hmac_md5_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/base64_test.dart
diff --git a/test/base64_test.dart b/test/base64_test.dart
index 4215af99efc99138c382ba5781bb4fc7942b2ac6..b5647b035bf4cfe55091663915d38c9f01fa5b64 100644
--- a/test/base64_test.dart
+++ b/test/base64_test.dart
@@ -8,7 +8,7 @@ library base64_test;
import 'dart:math';
import "package:crypto/crypto.dart";
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
void main() {
test('encoder', _testEncoder);
@@ -104,7 +104,7 @@ void _testDecoderForMalformedInput() {
void _testUrlSafeEncodeDecode() {
List<int> decUrlSafe = CryptoUtils.base64StringToBytes('-_A=');
List<int> dec = CryptoUtils.base64StringToBytes('+/A=');
- expect(decUrlSafe, dec);
+ expect(decUrlSafe, orderedEquals(dec));
expect(CryptoUtils.bytesToBase64(dec, urlSafe: true), '-_A=');
expect(CryptoUtils.bytesToBase64(dec), '+/A=');
}
@@ -118,7 +118,7 @@ void _testEncodeDecodeLists() {
}
var enc = CryptoUtils.bytesToBase64(x);
var dec = CryptoUtils.base64StringToBytes(enc);
- expect(dec, x);
+ expect(dec, orderedEquals(x));
}
}
}
« no previous file with comments | « pubspec.yaml ('k') | test/hmac_md5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698