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

Unified Diff: tests/corelib_strong/int_parse_radix_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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 | « tests/corelib_strong/int_modulo_arith_test.dart ('k') | tests/corelib_strong/integer_to_string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/int_parse_radix_test.dart
diff --git a/tests/corelib_strong/int_parse_radix_test.dart b/tests/corelib_strong/int_parse_radix_test.dart
index c46ff90d7f4b8f870eb243e8d5bb637f96d794ec..d44c50ef3515211c3dc06bd7fd2b57875936ea62 100644
--- a/tests/corelib_strong/int_parse_radix_test.dart
+++ b/tests/corelib_strong/int_parse_radix_test.dart
@@ -9,7 +9,7 @@ void main() {
bool checkedMode = false;
assert((checkedMode = true));
const String oneByteWhiteSpace = "\x09\x0a\x0b\x0c\x0d\x20"
- "\x85" /// 01: ok
+ "\x85" //# 01: ok
"\xa0";
const String whiteSpace = "$oneByteWhiteSpace\u1680"
"\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a"
@@ -61,21 +61,21 @@ void main() {
}
}
- for (int i = 2; i <= 36; i++) { // /// 02: ok
- // Test with bignums. // /// 02: continued
- var digit = digits[i - 1]; // /// 02: continued
- testParse(pow(i, 64) - 1, digit * 64, i); // /// 02: continued
- testParse(0, zeros, i); // /// 02: continued
- } // /// 02: continued
+ for (int i = 2; i <= 36; i++) { // //# 02: ok
+ // Test with bignums. // //# 02: continued
+ var digit = digits[i - 1]; // //# 02: continued
+ testParse(pow(i, 64) - 1, digit * 64, i); // //# 02: continued
+ testParse(0, zeros, i); // //# 02: continued
+ } // //# 02: continued
// Allow both upper- and lower-case letters.
Expect.equals(0xABCD, int.parse("ABCD", radix: 16));
Expect.equals(0xABCD, int.parse("abcd", radix: 16));
Expect.equals(15628859, int.parse("09azAZ", radix: 36));
// Big number.
- Expect.equals(0x12345678123456781234567812345678, // /// 02: continued
- int.parse("0x1234567812345678" // /// 02: continued
- "1234567812345678")); // /// 02: continued
+ Expect.equals(0x12345678123456781234567812345678, // //# 02: continued
+ int.parse("0x1234567812345678" // //# 02: continued
+ "1234567812345678")); // //# 02: continued
// Allow whitespace before and after the number.
Expect.equals(1, int.parse(" 1", radix: 2));
Expect.equals(1, int.parse("1 ", radix: 2));
« no previous file with comments | « tests/corelib_strong/int_modulo_arith_test.dart ('k') | tests/corelib_strong/integer_to_string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698