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

Side by Side Diff: test/very_long_input.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: tweaks from review 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 unified diff | Download patch
« no previous file with comments | « test/sha256_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library very_long_input_test;
2
3 import 'package:crypto/crypto.dart';
4 import 'package:test/test.dart';
5
6 veryLongInput(digester, int byteLength, String verify) {
7 var nullCharacter = '\u0000'.codeUnitAt(0);
8 var input = [nullCharacter];
9 for (var i = 0; i < byteLength; i++) {
10 digester.add(input);
11 }
12 var d = digester.close();
13 expect(CryptoUtils.bytesToHex(d), verify);
14 }
OLDNEW
« no previous file with comments | « test/sha256_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698