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

Unified Diff: tests/lib/convert/utf82_test.dart

Issue 22929022: Treat negative utf8-units the same way as other broken encodings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 4 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 | « sdk/lib/convert/utf.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/convert/utf82_test.dart
diff --git a/tests/lib/convert/utf82_test.dart b/tests/lib/convert/utf82_test.dart
index b52f240ccdabc98b5a1f2b75c9ab6d4c92aa1fb7..e3a581153e3ba382f56d4fb1d20474d860ad3236 100644
--- a/tests/lib/convert/utf82_test.dart
+++ b/tests/lib/convert/utf82_test.dart
@@ -50,7 +50,13 @@ final TESTS = [
[ 0xC0, 0x80 ],
[ 0xC1, 0x80 ],
// Outside valid range.
- [ 0xF4, 0xBF, 0xBF, 0xBF ]];
+ [ 0xF4, 0xBF, 0xBF, 0xBF ],
+ // Negative
+ [ -0x01 ],
+ [ -0xFF ],
+ [ -0x80000000 ],
+ [ -0x40000000 ],
+ [ -0x80000000000000000]];
final TESTS2 = [
// Test that 0xC0|1, 0x80 does not eat the next character.
« no previous file with comments | « sdk/lib/convert/utf.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698