diff --git a/LanguageFeatures/Patterns/map_A01_t01.dart b/LanguageFeatures/Patterns/map_A01_t01.dart index 9fc06872e8..220d60bbd9 100644 --- a/LanguageFeatures/Patterns/map_A01_t01.dart +++ b/LanguageFeatures/Patterns/map_A01_t01.dart @@ -73,13 +73,13 @@ String test(Map map) { } main() { - Expect.equals("logical-or", test({1: 1})); - Expect.equals("logical-or", test({1: -42})); - Expect.equals("default", test({1: -100})); - Expect.equals("logical-and", test({2: 1})); - Expect.equals("default", test({2: 10})); - Expect.equals("relational", test({3: 1})); - Expect.equals("default", test({3: 0})); + Expect.equals("logical-or", test({1: 1})); + Expect.equals("logical-or", test({1: -42})); + Expect.equals("default", test({1: -100})); + Expect.equals("logical-and", test({2: 1})); + Expect.equals("default", test({2: 10})); + Expect.equals("relational", test({3: 1})); + Expect.equals("default", test({3: 0})); Expect.equals("cast", test({4: 42})); Expect.throws(() {test({4: "42"});}); Expect.equals("null-check", test({5: 42})); @@ -96,10 +96,10 @@ main() { Expect.equals("parenthesized", test({9: 42})); Expect.equals("default", test({9: "42"})); Expect.equals("list-1", test({10: [42, 42]})); - Expect.equals("list-2", test({10: ["42", 42]})); + Expect.equals("list-2", test({10: ["42", 42]})); Expect.equals("default", test({10: [Object(), 42]})); Expect.equals("map-1", test({11: {1: 42}})); - Expect.equals("map-2", test({11: {"1": "42"}})); + Expect.equals("map-2", test({11: {"1": "42"}})); Expect.equals("default", test({11: {Object(): 42}})); Expect.equals("record-1", test({12: (42,)})); Expect.equals("record-2", test({12: (42, x: 0)})); diff --git a/LanguageFeatures/Patterns/map_A01_t02.dart b/LanguageFeatures/Patterns/map_A01_t02.dart index dcbd5a6089..0ecc7d8bec 100644 --- a/LanguageFeatures/Patterns/map_A01_t02.dart +++ b/LanguageFeatures/Patterns/map_A01_t02.dart @@ -94,13 +94,13 @@ String test(Map map) { } main() { - Expect.equals("logical-or", test({1: 1})); - Expect.equals("logical-or", test({1: -42})); - Expect.equals("default", test({1: -100})); - Expect.equals("logical-and", test({2: 1})); - Expect.equals("default", test({2: 10})); - Expect.equals("relational", test({3: 1})); - Expect.equals("default", test({3: 0})); + Expect.equals("logical-or", test({1: 1})); + Expect.equals("logical-or", test({1: -42})); + Expect.equals("default", test({1: -100})); + Expect.equals("logical-and", test({2: 1})); + Expect.equals("default", test({2: 10})); + Expect.equals("relational", test({3: 1})); + Expect.equals("default", test({3: 0})); Expect.equals("cast", test({4: 42})); Expect.throws(() {test({4: "42"});}); Expect.equals("null-check", test({5: 42})); @@ -117,10 +117,10 @@ main() { Expect.equals("parenthesized", test({9: 42})); Expect.equals("default", test({9: "42"})); Expect.equals("list-1", test({10: [42, 42]})); - Expect.equals("list-2", test({10: ["42", 42]})); + Expect.equals("list-2", test({10: ["42", 42]})); Expect.equals("default", test({10: [Object(), 42]})); Expect.equals("map-1", test({11: {1: 42}})); - Expect.equals("map-2", test({11: {"1": "42"}})); + Expect.equals("map-2", test({11: {"1": "42"}})); Expect.equals("default", test({11: {Object(): 42}})); Expect.equals("record-1", test({12: (42,)})); Expect.equals("record-2", test({12: (42, x: 0)})); diff --git a/LanguageFeatures/Patterns/map_A01_t03.dart b/LanguageFeatures/Patterns/map_A01_t03.dart index 6650de4368..1f0fbd1241 100644 --- a/LanguageFeatures/Patterns/map_A01_t03.dart +++ b/LanguageFeatures/Patterns/map_A01_t03.dart @@ -111,13 +111,13 @@ String test(Map map) { } main() { - Expect.equals("logical-or", test({1: 1})); - Expect.equals("logical-or", test({1: -42})); - Expect.equals("default", test({1: -100})); - Expect.equals("logical-and", test({2: 1})); - Expect.equals("default", test({2: 10})); - Expect.equals("relational", test({3: 1})); - Expect.equals("default", test({3: 0})); + Expect.equals("logical-or", test({1: 1})); + Expect.equals("logical-or", test({1: -42})); + Expect.equals("default", test({1: -100})); + Expect.equals("logical-and", test({2: 1})); + Expect.equals("default", test({2: 10})); + Expect.equals("relational", test({3: 1})); + Expect.equals("default", test({3: 0})); Expect.equals("cast", test({4: 42})); Expect.throws(() {test({4: "42"});}); Expect.equals("null-check", test({5: 42})); @@ -134,10 +134,10 @@ main() { Expect.equals("parenthesized", test({9: 42})); Expect.equals("default", test({9: "42"})); Expect.equals("list-1", test({10: [42, 42]})); - Expect.equals("list-2", test({10: ["42", 42]})); + Expect.equals("list-2", test({10: ["42", 42]})); Expect.equals("default", test({10: [Object(), 42]})); Expect.equals("map-1", test({11: {1: 42}})); - Expect.equals("map-2", test({11: {"1": "42"}})); + Expect.equals("map-2", test({11: {"1": "42"}})); Expect.equals("default", test({11: {Object(): 42}})); Expect.equals("record-1", test({12: (42,)})); Expect.equals("record-2", test({12: (42, x: 0)}));