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

Unified Diff: test/sha1_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/sha1_test.dart
diff --git a/test/sha1_test.dart b/test/sha1_test.dart
index a531b99c8330b9b5f48dae3e0acbc0d91b902060..b2f8634fe77025c98739fe783558cfafab30e7c5 100644
--- a/test/sha1_test.dart
+++ b/test/sha1_test.dart
@@ -7,6 +7,7 @@ library sha1_test;
import "package:crypto/crypto.dart";
import "package:test/test.dart";
+import 'very_long_input.dart';
part 'sha1_long_test_vectors.dart';
part 'sha1_short_test_vectors.dart';
@@ -21,6 +22,10 @@ void main() {
test('short inputs', () {
_testStandardVectors(sha1_short_inputs, sha1_short_mds);
});
+ test('input length greater than 32 bits', () {
rmacnak 2015/09/17 21:21:31 input bit length greater than 32 bits
sethladd 2015/09/17 21:30:52 Done.
+ veryLongInput(
+ new SHA1(), 1000000000, '1dd775261d7abab0b66910acc1d827a2c3799eaf');
+ });
}
void _testExpectedValues() {
« no previous file with comments | « lib/src/hash_base.dart ('k') | test/sha256_test.dart » ('j') | test/sha256_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698