mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:01:42 +00:00
[tests] Update test expectations
- Migrated test now expects `null is Object` to be false. - Added expectations for `is! Object`. Change-Id: I99c5dc76d2ccfa5a9fd853b7745b58edfff07085 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129309 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
parent
addd5eea00
commit
02369211cc
|
@ -17,6 +17,7 @@ check(args) {
|
|||
Expect.isFalse(list is Pattern);
|
||||
Expect.isFalse(list is String);
|
||||
|
||||
Expect.isFalse(list is! Object);
|
||||
Expect.isFalse(list is! List);
|
||||
Expect.isFalse(list is! Iterable);
|
||||
Expect.isTrue(list is! Comparable);
|
||||
|
@ -30,19 +31,21 @@ check(args) {
|
|||
Expect.isTrue(string is Pattern);
|
||||
Expect.isTrue(string is String);
|
||||
|
||||
Expect.isFalse(string is! Object);
|
||||
Expect.isTrue(string is! List);
|
||||
Expect.isTrue(string is! Iterable);
|
||||
Expect.isFalse(string is! Comparable);
|
||||
Expect.isFalse(string is! Pattern);
|
||||
Expect.isFalse(string is! String);
|
||||
|
||||
Expect.isTrue(nullObject is Object);
|
||||
Expect.isFalse(nullObject is Object);
|
||||
Expect.isFalse(nullObject is List);
|
||||
Expect.isFalse(nullObject is Iterable);
|
||||
Expect.isFalse(nullObject is Comparable);
|
||||
Expect.isFalse(nullObject is Pattern);
|
||||
Expect.isFalse(nullObject is String);
|
||||
|
||||
Expect.isTrue(nullObject is! Object);
|
||||
Expect.isTrue(nullObject is! List);
|
||||
Expect.isTrue(nullObject is! Iterable);
|
||||
Expect.isTrue(nullObject is! Comparable);
|
||||
|
|
Loading…
Reference in a new issue