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

Unified Diff: test/sha256_test.dart

Issue 1348823004: test large inputs for sha1 and sha256, also remove unused import (Closed) Base URL: git@github.com:dart-lang/crypto.git@master
Patch Set: Created 5 years, 3 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
Index: test/sha256_test.dart
diff --git a/test/sha256_test.dart b/test/sha256_test.dart
index a9c93601fd8ab78b90305c18df469221077e1cf7..055a67ccf869f17fb8069c5bbf560d817a390a7d 100644
--- a/test/sha256_test.dart
+++ b/test/sha256_test.dart
@@ -7,6 +7,7 @@ library sha256_test;
import "package:test/test.dart";
import "package:crypto/crypto.dart";
+import 'very_long_input.dart';
part 'sha256_long_test_vectors.dart';
part 'sha256_short_test_vectors.dart';
@@ -19,6 +20,10 @@ void main() {
() => _testStandardVectors(sha256_long_inputs, sha256_long_mds));
test('short inputs',
() => _testStandardVectors(sha256_short_inputs, sha256_short_mds));
+ test('input length greater than 32 bits', () {
rmacnak 2015/09/17 21:21:31 "
sethladd 2015/09/17 21:30:52 Done.
+ veryLongInput(new SHA256(), 1000000000,
+ 'bc17f06f9d9b5f6f79ca189a1772b1a3a38d6e40c45bec50f9c4f28144efddca');
+ });
}
void _testExpectedValues() {

Powered by Google App Engine
This is Rietveld 408576698