dart-sdk/tests
Lasse R.H. Nielsen a1783a9c34 String.fromCharCodes allows start and end after end of iterable.
The current `String.fromCharCodes` behavior, throwing if `start`
or `end` is larger than the length of the `charCodes` iterable,
is inconsistent with the argument being an `Iterable<int>`,
which the user is not expected to know the length of.

Most other operations that accepts or produces an `Iterable` and
restricts it to a range, will allow the range to exceed the length
of the iterable, acting like `.take(end).skip(start)`, just without
needing to create wrappers that hide the original value.

(`List.setRange` is another exception, and should probably be fixed
by allowing the range to be partially filled, since it's too hard
to change it to require a `List` argument.)

Fixes #50253, #53937

Tested: Added to `corelib/string_fromcharcodes_test.dart`
Bug: https://dartbug.com/53937, https://dartbug.com/50253, https://dartbug.com/23282
Change-Id: Ie19c5fa8e715ea1c58c9c77c247f2a563654c1aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/333921
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
2023-11-17 13:34:22 +00:00
..
co19 [tests] Skip multiple html and co19/html tests. 2023-11-10 01:20:39 +00:00
co19_2 [tests] Skip multiple html and co19/html tests. 2023-11-10 01:20:39 +00:00
corelib String.fromCharCodes allows start and end after end of iterable. 2023-11-17 13:34:22 +00:00
corelib_2 String.fromCharCodes allows start and end after end of iterable. 2023-11-17 13:34:22 +00:00
dartdevc [test,ddc] Update library test to use static method 2023-11-10 20:39:00 +00:00
dartdevc_2 [test,ddc] Update library test to use static method 2023-11-10 20:39:00 +00:00
ffi Reland "Expire 3.0.0 experiment flags." 2023-11-17 13:10:01 +00:00
ffi_2 [vm, ffi] Round up checking for registers for small structs. 2023-10-17 23:01:17 +00:00
language Use OWNERS files to restrict editing of tests/language to language team. 2023-11-16 18:18:00 +00:00
language_2 Reland "Expire 3.0.0 experiment flags." 2023-11-17 13:10:01 +00:00
lib [cfe] Make extension type non-nullable only if it implements Object 2023-11-15 14:02:35 +00:00
lib_2 [tests] Skip multiple html and co19/html tests. 2023-11-10 01:20:39 +00:00
modular [tests] Add repro for cross module constant 2023-11-13 22:21:40 +00:00
standalone Revert "Call the HttpClient constructor when connecting a WebSocket to allow HttpOverrides to work." 2023-11-14 16:32:50 +00:00
web [dart2js] Fix list tracing treating first/last setters as type preserving. 2023-11-08 03:50:21 +00:00
web_2 [web] fix improperly migrated tests. 2023-10-25 15:37:50 +00:00
legacy_status_dart2js.csv Spelling tests 2022-12-19 12:56:47 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.