dart-sdk/tests
Paul Berry 34561fac0a Additional improvements to inference-update-3 tests.
This CL makes the following improvements (suggested in the code review
of https://dart-review.googlesource.com/c/sdk/+/356303):

- Add parenthetical comment "(Testing this case here. Otherwise
  continued below.)", to reduce confusion for a reader reading the
  tests for the first time.

- In all test cases using a promotable variable `o`, declare `Object?
  o;` first, then assign `o = ... as Object?;`. This makes the test
  cases more symmetrical, since `o = ... as Object?;` now appears in
  every test case, rather than getting coalesced with the variable
  declaration in some test cases but not others.

- Consistently use `e` rather than `E` to refer to the whole
  expression being tested.

- Expand on the explanation for how each test case matches up to the
  type metavariables K, T1, T2, etc., and why the expected result
  occurs.

- Remove tickmarks around type metavariables.

- Clarify that the type S is chosen, rather than T, only when the
  feature is enabled.

Change-Id: I149b323daeac9fc44104681370cea33ee010faa4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357204
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-04-04 21:24:34 +00:00
..
co19 [ddc] Add configuration to compile with asserts 2024-04-04 14:40:30 +00:00
corelib Use an OWNERS file to restrict editing of tests/corelib to language team. 2024-04-03 15:57:20 +00:00
dartdevc [ddc] Delete variance tests for old DDC types 2024-02-14 22:29:33 +00:00
ffi [vm/ffi] Throw on attaching NativeFinalizer to deeply immutable object 2024-03-28 11:24:36 +00:00
hot_reload [ddc] Adding tests for pkg:reload_test and enabling reload tests in test bots. 2024-03-25 23:58:26 +00:00
language Additional improvements to inference-update-3 tests. 2024-04-04 21:24:34 +00:00
lib [ddc] Add configuration to compile with asserts 2024-04-04 14:40:30 +00:00
macro_build add package:_macros (SDK vendored) and package:macros (pub published) 2024-03-26 18:40:00 +00:00
modular [tests] Add repro for cross module constant 2023-11-13 22:21:40 +00:00
standalone Revert "[io] Fix a bug where Process.stdin.add exceptions could not be caught" 2024-03-25 21:03:12 +00:00
web [ddc] Add configuration to compile with asserts 2024-04-04 14:40:30 +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.