dart-sdk/tests/language/bool
Alexander Markov 0f89df0c00 [tests/nnbd] Fork language/bool tests for weak and strong mode
Migrated language/bool tests expect TypeError when null value is used
in a condition (which is still possible if static type of condition is
dynamic). This is right in NNBD strong mode, as implicit cast of null
to bool will fail with TypeError. However, in NNBD weak mode implicit
cast passes, and then AssertionError is thrown as before.
Before migration language_2/bool tests expected AssertionError.

This change forks the tests to behave differently in weak and strong
modes.

Change-Id: Iaba9e606bafe5740a998a60a74a6b54e38cac86b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141800
Reviewed-by: Leaf Petersen <leafp@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-04-01 00:35:37 +00:00
..
bool_test.dart
check_strong_test.dart [tests/nnbd] Fork language/bool tests for weak and strong mode 2020-04-01 00:35:37 +00:00
check_weak_test.dart [tests/nnbd] Fork language/bool tests for weak and strong mode 2020-04-01 00:35:37 +00:00
condition_check_strong_test.dart [tests/nnbd] Fork language/bool tests for weak and strong mode 2020-04-01 00:35:37 +00:00
condition_check_weak_test.dart [tests/nnbd] Fork language/bool tests for weak and strong mode 2020-04-01 00:35:37 +00:00
has_environment_not_new_test.dart
has_environment_test.dart