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

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: 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
« sdk/lib/convert/utf.dart ('K') | « 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..bdcf5a9391f39b7f1841d8ab52e4378699693085 100644
--- a/tests/lib/convert/utf82_test.dart
+++ b/tests/lib/convert/utf82_test.dart
@@ -50,7 +50,10 @@ final TESTS = [
[ 0xC0, 0x80 ],
[ 0xC1, 0x80 ],
// Outside valid range.
- [ 0xF4, 0xBF, 0xBF, 0xBF ]];
+ [ 0xF4, 0xBF, 0xBF, 0xBF ],
+ // Negative
+ [ -0x01 ],
+ [ -0xFF ]];
Lasse Reichstein Nielsen 2013/08/22 06:10:42 Try also: -0x80000000 (min int32) -0x40000000 (m
floitsch 2013/08/22 15:40:25 Done.
final TESTS2 = [
// Test that 0xC0|1, 0x80 does not eat the next character.
« sdk/lib/convert/utf.dart ('K') | « sdk/lib/convert/utf.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698