Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2490)

Unified Diff: frog/tests/leg/type_combination_test.dart

Issue 10536169: Move frog/tests/{leg,leg_only,frog_native} to tests/compiler/. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « frog/tests/leg/type_checker_test.dart ('k') | frog/tests/leg/type_guard_unuser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/type_combination_test.dart
===================================================================
--- frog/tests/leg/type_combination_test.dart (revision 8644)
+++ frog/tests/leg/type_combination_test.dart (working copy)
@@ -1,979 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#source("../../../lib/compiler/implementation/ssa/types.dart");
-
-class Type {
- const Type(this.str);
- final String str;
-}
-
-final CONFLICTING = HType.CONFLICTING;
-final UNKNOWN = HType.UNKNOWN;
-final BOOLEAN = HType.BOOLEAN;
-final NUMBER = HType.NUMBER;
-final INTEGER = HType.INTEGER;
-final DOUBLE = HType.DOUBLE;
-final INDEXABLE_PRIMITIVE = HType.INDEXABLE_PRIMITIVE;
-final STRING = HType.STRING;
-final READABLE_ARRAY = HType.READABLE_ARRAY;
-final MUTABLE_ARRAY = HType.MUTABLE_ARRAY;
-final EXTENDABLE_ARRAY = HType.EXTENDABLE_ARRAY;
-final NON_PRIMITIVE1 = const HBoundedType.nonNull(const Type("type1"));
-final NON_PRIMITIVE2 = const HBoundedType.nonNull(const Type("type2"));
-final POTENTIAL_ARRAY =
- const HBoundedPotentialPrimitiveArray(const Type('type 3'), true);
-final POTENTIAL_STRING =
- const HBoundedPotentialPrimitiveString(const Type('type 4'), true);
-final BOOLEAN_OR_NULL = HType.BOOLEAN_OR_NULL;
-final NUMBER_OR_NULL = HType.NUMBER_OR_NULL;
-final INTEGER_OR_NULL = HType.INTEGER_OR_NULL;
-final DOUBLE_OR_NULL = HType.DOUBLE_OR_NULL;
-final STRING_OR_NULL = HType.STRING_OR_NULL;
-final NULL = HType.NULL;
-
-void testUnion() {
- Expect.equals(CONFLICTING, CONFLICTING.union(CONFLICTING));
- Expect.equals(CONFLICTING, CONFLICTING.union(UNKNOWN));
- Expect.equals(CONFLICTING, CONFLICTING.union(BOOLEAN));
- Expect.equals(CONFLICTING, CONFLICTING.union(NUMBER));
- Expect.equals(CONFLICTING, CONFLICTING.union(INTEGER));
- Expect.equals(CONFLICTING, CONFLICTING.union(DOUBLE));
- Expect.equals(CONFLICTING, CONFLICTING.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, CONFLICTING.union(STRING));
- Expect.equals(CONFLICTING, CONFLICTING.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, CONFLICTING.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, CONFLICTING.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, CONFLICTING.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.union(STRING_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.union(NULL));
-
- Expect.equals(CONFLICTING, UNKNOWN.union(CONFLICTING));
- Expect.equals(UNKNOWN, UNKNOWN.union(UNKNOWN));
- Expect.equals(BOOLEAN, UNKNOWN.union(BOOLEAN));
- Expect.equals(NUMBER, UNKNOWN.union(NUMBER));
- Expect.equals(INTEGER, UNKNOWN.union(INTEGER));
- Expect.equals(DOUBLE, UNKNOWN.union(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE, UNKNOWN.union(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING, UNKNOWN.union(STRING));
- Expect.equals(READABLE_ARRAY, UNKNOWN.union(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, UNKNOWN.union(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY, UNKNOWN.union(EXTENDABLE_ARRAY));
- Expect.equals(NON_PRIMITIVE1, UNKNOWN.union(NON_PRIMITIVE1));
- Expect.equals(NON_PRIMITIVE2, UNKNOWN.union(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY, UNKNOWN.union(POTENTIAL_ARRAY));
- Expect.equals(POTENTIAL_STRING, UNKNOWN.union(POTENTIAL_STRING));
- Expect.equals(BOOLEAN_OR_NULL, UNKNOWN.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, UNKNOWN.union(NUMBER_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, UNKNOWN.union(INTEGER_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, UNKNOWN.union(DOUBLE_OR_NULL));
- Expect.equals(STRING_OR_NULL, UNKNOWN.union(STRING_OR_NULL));
- Expect.equals(NULL, UNKNOWN.union(NULL));
-
- Expect.equals(CONFLICTING, BOOLEAN.union(CONFLICTING));
- Expect.equals(BOOLEAN, BOOLEAN.union(UNKNOWN));
- Expect.equals(BOOLEAN, BOOLEAN.union(BOOLEAN));
- Expect.equals(CONFLICTING, BOOLEAN.union(NUMBER));
- Expect.equals(CONFLICTING, BOOLEAN.union(INTEGER));
- Expect.equals(CONFLICTING, BOOLEAN.union(DOUBLE));
- Expect.equals(CONFLICTING, BOOLEAN.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, BOOLEAN.union(STRING));
- Expect.equals(CONFLICTING, BOOLEAN.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, BOOLEAN.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, BOOLEAN.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.union(POTENTIAL_STRING));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.union(STRING_OR_NULL));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN.union(NULL));
-
- Expect.equals(CONFLICTING, NUMBER.union(CONFLICTING));
- Expect.equals(NUMBER, NUMBER.union(UNKNOWN));
- Expect.equals(CONFLICTING, NUMBER.union(BOOLEAN));
- Expect.equals(NUMBER, NUMBER.union(NUMBER));
- Expect.equals(NUMBER, NUMBER.union(INTEGER));
- Expect.equals(NUMBER, NUMBER.union(DOUBLE));
- Expect.equals(CONFLICTING, NUMBER.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NUMBER.union(STRING));
- Expect.equals(CONFLICTING, NUMBER.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NUMBER.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NUMBER.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NUMBER.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER.union(NUMBER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER.union(INTEGER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NUMBER.union(STRING_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER.union(NULL));
-
- Expect.equals(CONFLICTING, INTEGER.union(CONFLICTING));
- Expect.equals(INTEGER, INTEGER.union(UNKNOWN));
- Expect.equals(CONFLICTING, INTEGER.union(BOOLEAN));
- Expect.equals(NUMBER, INTEGER.union(NUMBER));
- Expect.equals(INTEGER, INTEGER.union(INTEGER));
- Expect.equals(NUMBER, INTEGER.union(DOUBLE));
- Expect.equals(CONFLICTING, INTEGER.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, INTEGER.union(STRING));
- Expect.equals(CONFLICTING, INTEGER.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, INTEGER.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, INTEGER.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, INTEGER.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, INTEGER.union(NUMBER_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, INTEGER.union(INTEGER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, INTEGER.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, INTEGER.union(STRING_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, INTEGER.union(NULL));
-
- Expect.equals(CONFLICTING, DOUBLE.union(CONFLICTING));
- Expect.equals(DOUBLE, DOUBLE.union(UNKNOWN));
- Expect.equals(CONFLICTING, DOUBLE.union(BOOLEAN));
- Expect.equals(NUMBER, DOUBLE.union(NUMBER));
- Expect.equals(NUMBER, DOUBLE.union(INTEGER));
- Expect.equals(DOUBLE, DOUBLE.union(DOUBLE));
- Expect.equals(CONFLICTING, DOUBLE.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, DOUBLE.union(STRING));
- Expect.equals(CONFLICTING, DOUBLE.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, DOUBLE.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, DOUBLE.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, DOUBLE.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, DOUBLE.union(NUMBER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, DOUBLE.union(INTEGER_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, DOUBLE.union(STRING_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE.union(NULL));
-
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(CONFLICTING));
- Expect.equals(INDEXABLE_PRIMITIVE, INDEXABLE_PRIMITIVE.union(UNKNOWN));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(BOOLEAN));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(NUMBER));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(INTEGER));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE,
- INDEXABLE_PRIMITIVE.union(INDEXABLE_PRIMITIVE));
- Expect.equals(INDEXABLE_PRIMITIVE, INDEXABLE_PRIMITIVE.union(STRING));
- Expect.equals(INDEXABLE_PRIMITIVE, INDEXABLE_PRIMITIVE.union(READABLE_ARRAY));
- Expect.equals(INDEXABLE_PRIMITIVE, INDEXABLE_PRIMITIVE.union(MUTABLE_ARRAY));
- Expect.equals(INDEXABLE_PRIMITIVE,
- INDEXABLE_PRIMITIVE.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(STRING_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.union(NULL));
-
- Expect.equals(CONFLICTING, STRING.union(CONFLICTING));
- Expect.equals(STRING, STRING.union(UNKNOWN));
- Expect.equals(CONFLICTING, STRING.union(BOOLEAN));
- Expect.equals(CONFLICTING, STRING.union(NUMBER));
- Expect.equals(CONFLICTING, STRING.union(INTEGER));
- Expect.equals(CONFLICTING, STRING.union(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE, STRING.union(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING, STRING.union(STRING));
- Expect.equals(INDEXABLE_PRIMITIVE, STRING.union(READABLE_ARRAY));
- Expect.equals(INDEXABLE_PRIMITIVE, STRING.union(MUTABLE_ARRAY));
- Expect.equals(INDEXABLE_PRIMITIVE, STRING.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, STRING.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, STRING.union(POTENTIAL_ARRAY));
- Expect.equals(POTENTIAL_STRING, STRING.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, STRING.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, STRING.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, STRING.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, STRING.union(DOUBLE_OR_NULL));
- Expect.equals(STRING_OR_NULL, STRING.union(STRING_OR_NULL));
- Expect.equals(STRING_OR_NULL, STRING.union(NULL));
-
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(CONFLICTING));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.union(UNKNOWN));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(BOOLEAN));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(NUMBER));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(INTEGER));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE, READABLE_ARRAY.union(INDEXABLE_PRIMITIVE));
- Expect.equals(INDEXABLE_PRIMITIVE, READABLE_ARRAY.union(STRING));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.union(READABLE_ARRAY));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.union(MUTABLE_ARRAY));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY, READABLE_ARRAY.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(STRING_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.union(NULL));
-
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(CONFLICTING));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.union(UNKNOWN));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(BOOLEAN));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(NUMBER));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(INTEGER));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE, MUTABLE_ARRAY.union(INDEXABLE_PRIMITIVE));
- Expect.equals(INDEXABLE_PRIMITIVE, MUTABLE_ARRAY.union(STRING));
- Expect.equals(READABLE_ARRAY, MUTABLE_ARRAY.union(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.union(MUTABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY,MUTABLE_ARRAY.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(STRING_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.union(NULL));
-
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(CONFLICTING));
- Expect.equals(EXTENDABLE_ARRAY, EXTENDABLE_ARRAY.union(UNKNOWN));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(BOOLEAN));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(NUMBER));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(INTEGER));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE, EXTENDABLE_ARRAY.union(INDEXABLE_PRIMITIVE));
- Expect.equals(INDEXABLE_PRIMITIVE, EXTENDABLE_ARRAY.union(STRING));
- Expect.equals(READABLE_ARRAY, EXTENDABLE_ARRAY.union(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, EXTENDABLE_ARRAY.union(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY, EXTENDABLE_ARRAY.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY, EXTENDABLE_ARRAY.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(STRING_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.union(NULL));
-
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(CONFLICTING));
- Expect.equals(NON_PRIMITIVE1, NON_PRIMITIVE1.union(UNKNOWN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(BOOLEAN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(NUMBER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(INTEGER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(DOUBLE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(EXTENDABLE_ARRAY));
- Expect.equals(NON_PRIMITIVE1, NON_PRIMITIVE1.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.union(STRING_OR_NULL));
- Expect.isTrue(NON_PRIMITIVE1.union(NULL) is HBoundedType);
-
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(CONFLICTING));
- Expect.equals(NON_PRIMITIVE2, NON_PRIMITIVE2.union(UNKNOWN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(BOOLEAN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(NUMBER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(INTEGER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(DOUBLE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(NON_PRIMITIVE1));
- Expect.equals(NON_PRIMITIVE2, NON_PRIMITIVE2.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.union(STRING_OR_NULL));
- Expect.isTrue(NON_PRIMITIVE2.union(NULL) is HBoundedType);
-
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(CONFLICTING));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.union(UNKNOWN));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(BOOLEAN));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(NUMBER));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(INTEGER));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(DOUBLE));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(STRING));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.union(READABLE_ARRAY));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.union(MUTABLE_ARRAY));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.union(STRING_OR_NULL));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.union(NULL));
-
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(CONFLICTING));
- Expect.equals(POTENTIAL_STRING, POTENTIAL_STRING.union(UNKNOWN));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(BOOLEAN));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(NUMBER));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(INTEGER));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(DOUBLE));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(INDEXABLE_PRIMITIVE));
- Expect.equals(POTENTIAL_STRING, POTENTIAL_STRING.union(STRING));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(POTENTIAL_ARRAY));
- Expect.equals(POTENTIAL_STRING, POTENTIAL_STRING.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.union(DOUBLE_OR_NULL));
- Expect.equals(POTENTIAL_STRING, POTENTIAL_STRING.union(STRING_OR_NULL));
- Expect.equals(POTENTIAL_STRING, POTENTIAL_STRING.union(NULL));
-
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(CONFLICTING));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN_OR_NULL.union(UNKNOWN));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN_OR_NULL.union(BOOLEAN));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(NUMBER));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(INTEGER));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(DOUBLE));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(STRING));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(POTENTIAL_STRING));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN_OR_NULL.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.union(STRING_OR_NULL));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN_OR_NULL.union(NULL));
-
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(CONFLICTING));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(UNKNOWN));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(BOOLEAN));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(NUMBER));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(INTEGER));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(DOUBLE));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(STRING));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(NUMBER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(INTEGER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.union(STRING_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.union(NULL));
-
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(CONFLICTING));
- Expect.equals(INTEGER_OR_NULL, INTEGER_OR_NULL.union(UNKNOWN));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(BOOLEAN));
- Expect.equals(NUMBER_OR_NULL, INTEGER_OR_NULL.union(NUMBER));
- Expect.equals(INTEGER_OR_NULL, INTEGER_OR_NULL.union(INTEGER));
- Expect.equals(NUMBER_OR_NULL, INTEGER_OR_NULL.union(DOUBLE));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(STRING));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, INTEGER_OR_NULL.union(NUMBER_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, INTEGER_OR_NULL.union(INTEGER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, INTEGER_OR_NULL.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.union(STRING_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, INTEGER_OR_NULL.union(NULL));
-
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(CONFLICTING));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE_OR_NULL.union(UNKNOWN));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(BOOLEAN));
- Expect.equals(NUMBER_OR_NULL, DOUBLE_OR_NULL.union(NUMBER));
- Expect.equals(NUMBER_OR_NULL, DOUBLE_OR_NULL.union(INTEGER));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE_OR_NULL.union(DOUBLE));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(STRING));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, DOUBLE_OR_NULL.union(NUMBER_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, DOUBLE_OR_NULL.union(INTEGER_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE_OR_NULL.union(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.union(STRING_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE_OR_NULL.union(NULL));
-
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(CONFLICTING));
- Expect.equals(STRING_OR_NULL, STRING_OR_NULL.union(UNKNOWN));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(BOOLEAN));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(NUMBER));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(INTEGER));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(DOUBLE));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING_OR_NULL, STRING_OR_NULL.union(STRING));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(POTENTIAL_ARRAY));
- Expect.equals(POTENTIAL_STRING, STRING_OR_NULL.union(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, STRING_OR_NULL.union(DOUBLE_OR_NULL));
- Expect.equals(STRING_OR_NULL, STRING_OR_NULL.union(STRING_OR_NULL));
- Expect.equals(STRING_OR_NULL, STRING_OR_NULL.union(NULL));
-
- Expect.equals(CONFLICTING, NULL.union(CONFLICTING));
- Expect.equals(NULL, NULL.union(UNKNOWN));
- Expect.equals(BOOLEAN_OR_NULL, NULL.union(BOOLEAN));
- Expect.equals(NUMBER_OR_NULL, NULL.union(NUMBER));
- Expect.equals(INTEGER_OR_NULL, NULL.union(INTEGER));
- Expect.equals(DOUBLE_OR_NULL, NULL.union(DOUBLE));
- Expect.equals(CONFLICTING, NULL.union(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING_OR_NULL, NULL.union(STRING));
- Expect.equals(CONFLICTING, NULL.union(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NULL.union(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NULL.union(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NULL.union(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NULL.union(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY, NULL.union(POTENTIAL_ARRAY));
- Expect.equals(POTENTIAL_STRING, NULL.union(POTENTIAL_STRING));
- Expect.equals(BOOLEAN_OR_NULL, NULL.union(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NULL.union(NUMBER_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, NULL.union(INTEGER_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, NULL.union(DOUBLE_OR_NULL));
- Expect.equals(STRING_OR_NULL, NULL.union(STRING_OR_NULL));
- Expect.equals(NULL, NULL.union(NULL));
-}
-
-void testIntersection() {
- Expect.equals(CONFLICTING, CONFLICTING.intersection(CONFLICTING));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(NUMBER));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(INTEGER));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(DOUBLE));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(STRING));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, CONFLICTING.intersection(NULL));
-
- Expect.equals(CONFLICTING, UNKNOWN.intersection(CONFLICTING));
- Expect.equals(UNKNOWN, UNKNOWN.intersection(UNKNOWN));
- Expect.equals(BOOLEAN, UNKNOWN.intersection(BOOLEAN));
- Expect.equals(NUMBER, UNKNOWN.intersection(NUMBER));
- Expect.equals(INTEGER, UNKNOWN.intersection(INTEGER));
- Expect.equals(DOUBLE, UNKNOWN.intersection(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE, UNKNOWN.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING, UNKNOWN.intersection(STRING));
- Expect.equals(READABLE_ARRAY, UNKNOWN.intersection(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, UNKNOWN.intersection(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY, UNKNOWN.intersection(EXTENDABLE_ARRAY));
- Expect.equals(NON_PRIMITIVE1, UNKNOWN.intersection(NON_PRIMITIVE1));
- Expect.equals(NON_PRIMITIVE2, UNKNOWN.intersection(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY, UNKNOWN.intersection(POTENTIAL_ARRAY));
- Expect.equals(POTENTIAL_STRING, UNKNOWN.intersection(POTENTIAL_STRING));
- Expect.equals(BOOLEAN_OR_NULL, UNKNOWN.intersection(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, UNKNOWN.intersection(NUMBER_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, UNKNOWN.intersection(INTEGER_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, UNKNOWN.intersection(DOUBLE_OR_NULL));
- Expect.equals(STRING_OR_NULL, UNKNOWN.intersection(STRING_OR_NULL));
- Expect.equals(NULL, UNKNOWN.intersection(NULL));
-
- Expect.equals(CONFLICTING, BOOLEAN.intersection(CONFLICTING));
- Expect.equals(BOOLEAN, BOOLEAN.intersection(UNKNOWN));
- Expect.equals(BOOLEAN, BOOLEAN.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(NUMBER));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(INTEGER));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(DOUBLE));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(STRING));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(POTENTIAL_STRING));
- Expect.equals(BOOLEAN, BOOLEAN.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN.intersection(NULL));
-
- Expect.equals(CONFLICTING, NUMBER.intersection(CONFLICTING));
- Expect.equals(NUMBER, NUMBER.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, NUMBER.intersection(BOOLEAN));
- Expect.equals(NUMBER, NUMBER.intersection(NUMBER));
- Expect.equals(INTEGER, NUMBER.intersection(INTEGER));
- Expect.equals(DOUBLE, NUMBER.intersection(DOUBLE));
- Expect.equals(CONFLICTING, NUMBER.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NUMBER.intersection(STRING));
- Expect.equals(CONFLICTING, NUMBER.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NUMBER.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NUMBER.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NUMBER.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NUMBER.intersection(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER, NUMBER.intersection(NUMBER_OR_NULL));
- Expect.equals(INTEGER, NUMBER.intersection(INTEGER_OR_NULL));
- Expect.equals(DOUBLE, NUMBER.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NUMBER.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, NUMBER.intersection(NULL));
-
- Expect.equals(CONFLICTING, INTEGER.intersection(CONFLICTING));
- Expect.equals(INTEGER, INTEGER.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, INTEGER.intersection(BOOLEAN));
- Expect.equals(INTEGER, INTEGER.intersection(NUMBER));
- Expect.equals(INTEGER, INTEGER.intersection(INTEGER));
- Expect.equals(CONFLICTING, INTEGER.intersection(DOUBLE));
- Expect.equals(CONFLICTING, INTEGER.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, INTEGER.intersection(STRING));
- Expect.equals(CONFLICTING, INTEGER.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, INTEGER.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, INTEGER.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, INTEGER.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, INTEGER.intersection(BOOLEAN_OR_NULL));
- Expect.equals(INTEGER, INTEGER.intersection(NUMBER_OR_NULL));
- Expect.equals(INTEGER, INTEGER.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, INTEGER.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, INTEGER.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, INTEGER.intersection(NULL));
-
- Expect.equals(CONFLICTING, DOUBLE.intersection(CONFLICTING));
- Expect.equals(DOUBLE, DOUBLE.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, DOUBLE.intersection(BOOLEAN));
- Expect.equals(DOUBLE, DOUBLE.intersection(NUMBER));
- Expect.equals(CONFLICTING, DOUBLE.intersection(INTEGER));
- Expect.equals(DOUBLE, DOUBLE.intersection(DOUBLE));
- Expect.equals(CONFLICTING, DOUBLE.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, DOUBLE.intersection(STRING));
- Expect.equals(CONFLICTING, DOUBLE.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, DOUBLE.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, DOUBLE.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, DOUBLE.intersection(BOOLEAN_OR_NULL));
- Expect.equals(DOUBLE, DOUBLE.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, DOUBLE.intersection(INTEGER_OR_NULL));
- Expect.equals(DOUBLE, DOUBLE.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, DOUBLE.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, DOUBLE.intersection(NULL));
-
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(CONFLICTING));
- Expect.equals(INDEXABLE_PRIMITIVE, INDEXABLE_PRIMITIVE.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(NUMBER));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(INTEGER));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(DOUBLE));
- Expect.equals(INDEXABLE_PRIMITIVE,
- INDEXABLE_PRIMITIVE.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING, INDEXABLE_PRIMITIVE.intersection(STRING));
- Expect.equals(READABLE_ARRAY,
- INDEXABLE_PRIMITIVE.intersection(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY,
- INDEXABLE_PRIMITIVE.intersection(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY,
- INDEXABLE_PRIMITIVE.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(NON_PRIMITIVE2));
- Expect.equals(READABLE_ARRAY,
- INDEXABLE_PRIMITIVE.intersection(POTENTIAL_ARRAY));
- Expect.equals(STRING,
- INDEXABLE_PRIMITIVE.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, INDEXABLE_PRIMITIVE.intersection(NULL));
-
- Expect.equals(CONFLICTING, STRING.intersection(CONFLICTING));
- Expect.equals(STRING, STRING.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, STRING.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, STRING.intersection(NUMBER));
- Expect.equals(CONFLICTING, STRING.intersection(INTEGER));
- Expect.equals(CONFLICTING, STRING.intersection(DOUBLE));
- Expect.equals(STRING, STRING.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING, STRING.intersection(STRING));
- Expect.equals(CONFLICTING, STRING.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, STRING.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, STRING.intersection(POTENTIAL_ARRAY));
- Expect.equals(STRING, STRING.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, STRING.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, STRING.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, STRING.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, STRING.intersection(DOUBLE_OR_NULL));
- Expect.equals(STRING, STRING.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, STRING.intersection(NULL));
-
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(CONFLICTING));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(NUMBER));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(INTEGER));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(DOUBLE));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(STRING));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.intersection(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, READABLE_ARRAY.intersection(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY, READABLE_ARRAY.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(NON_PRIMITIVE2));
- Expect.equals(READABLE_ARRAY, READABLE_ARRAY.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, READABLE_ARRAY.intersection(NULL));
-
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(CONFLICTING));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(NUMBER));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(INTEGER));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(DOUBLE));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(STRING));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.intersection(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.intersection(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY, MUTABLE_ARRAY.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(NON_PRIMITIVE2));
- Expect.equals(MUTABLE_ARRAY, MUTABLE_ARRAY.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, MUTABLE_ARRAY.intersection(NULL));
-
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(CONFLICTING));
- Expect.equals(EXTENDABLE_ARRAY, EXTENDABLE_ARRAY.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(NUMBER));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(INTEGER));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(DOUBLE));
- Expect.equals(EXTENDABLE_ARRAY,
- EXTENDABLE_ARRAY.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(STRING));
- Expect.equals(EXTENDABLE_ARRAY,
- EXTENDABLE_ARRAY.intersection(READABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY, EXTENDABLE_ARRAY.intersection(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY,
- EXTENDABLE_ARRAY.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(NON_PRIMITIVE2));
- Expect.equals(EXTENDABLE_ARRAY,
- EXTENDABLE_ARRAY.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, EXTENDABLE_ARRAY.intersection(NULL));
-
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(CONFLICTING));
- Expect.equals(NON_PRIMITIVE1, NON_PRIMITIVE1.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(NUMBER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(INTEGER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(DOUBLE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(EXTENDABLE_ARRAY));
- Expect.equals(NON_PRIMITIVE1, NON_PRIMITIVE1.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE1.intersection(NULL));
-
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(CONFLICTING));
- Expect.equals(NON_PRIMITIVE2, NON_PRIMITIVE2.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(NUMBER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(INTEGER));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(DOUBLE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(NON_PRIMITIVE1));
- Expect.equals(NON_PRIMITIVE2, NON_PRIMITIVE2.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(STRING_OR_NULL));
- Expect.equals(CONFLICTING, NON_PRIMITIVE2.intersection(NULL));
-
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(CONFLICTING));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(NUMBER));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(INTEGER));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(DOUBLE));
- Expect.equals(READABLE_ARRAY, POTENTIAL_ARRAY.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(STRING));
- Expect.equals(READABLE_ARRAY, POTENTIAL_ARRAY.intersection(READABLE_ARRAY));
- Expect.equals(MUTABLE_ARRAY, POTENTIAL_ARRAY.intersection(MUTABLE_ARRAY));
- Expect.equals(EXTENDABLE_ARRAY, POTENTIAL_ARRAY.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(NON_PRIMITIVE2));
- Expect.equals(POTENTIAL_ARRAY, POTENTIAL_ARRAY.intersection(POTENTIAL_ARRAY));
- Expect.equals(NULL, POTENTIAL_ARRAY.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_ARRAY.intersection(STRING_OR_NULL));
- Expect.equals(NULL, POTENTIAL_ARRAY.intersection(NULL));
-
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(CONFLICTING));
- Expect.equals(POTENTIAL_STRING, POTENTIAL_STRING.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(NUMBER));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(INTEGER));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(DOUBLE));
- Expect.equals(STRING, POTENTIAL_STRING.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING, POTENTIAL_STRING.intersection(STRING));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(NON_PRIMITIVE2));
- Expect.equals(NULL, POTENTIAL_STRING.intersection(POTENTIAL_ARRAY));
- Expect.equals(POTENTIAL_STRING, POTENTIAL_STRING.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, POTENTIAL_STRING.intersection(DOUBLE_OR_NULL));
- Expect.equals(STRING_OR_NULL, POTENTIAL_STRING.intersection(STRING_OR_NULL));
- Expect.equals(NULL, POTENTIAL_STRING.intersection(NULL));
-
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(CONFLICTING));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN_OR_NULL.intersection(UNKNOWN));
- Expect.equals(BOOLEAN, BOOLEAN_OR_NULL.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(NUMBER));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(INTEGER));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(DOUBLE));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(STRING));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(POTENTIAL_STRING));
- Expect.equals(BOOLEAN_OR_NULL, BOOLEAN_OR_NULL.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, BOOLEAN_OR_NULL.intersection(STRING_OR_NULL));
- Expect.equals(NULL, BOOLEAN_OR_NULL.intersection(NULL));
-
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(CONFLICTING));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(BOOLEAN));
- Expect.equals(NUMBER, NUMBER_OR_NULL.intersection(NUMBER));
- Expect.equals(INTEGER, NUMBER_OR_NULL.intersection(INTEGER));
- Expect.equals(DOUBLE, NUMBER_OR_NULL.intersection(DOUBLE));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(STRING));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(BOOLEAN_OR_NULL));
- Expect.equals(NUMBER_OR_NULL, NUMBER_OR_NULL.intersection(NUMBER_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, NUMBER_OR_NULL.intersection(INTEGER_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, NUMBER_OR_NULL.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, NUMBER_OR_NULL.intersection(STRING_OR_NULL));
- Expect.equals(NULL, NUMBER_OR_NULL.intersection(NULL));
-
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(CONFLICTING));
- Expect.equals(INTEGER_OR_NULL, INTEGER_OR_NULL.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(BOOLEAN));
- Expect.equals(INTEGER, INTEGER_OR_NULL.intersection(NUMBER));
- Expect.equals(INTEGER, INTEGER_OR_NULL.intersection(INTEGER));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(DOUBLE));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(STRING));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(BOOLEAN_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, INTEGER_OR_NULL.intersection(NUMBER_OR_NULL));
- Expect.equals(INTEGER_OR_NULL, INTEGER_OR_NULL.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, INTEGER_OR_NULL.intersection(STRING_OR_NULL));
- Expect.equals(NULL, INTEGER_OR_NULL.intersection(NULL));
-
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(CONFLICTING));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE_OR_NULL.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(BOOLEAN));
- Expect.equals(DOUBLE, DOUBLE_OR_NULL.intersection(NUMBER));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(INTEGER));
- Expect.equals(DOUBLE, DOUBLE_OR_NULL.intersection(DOUBLE));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(STRING));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(POTENTIAL_ARRAY));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(BOOLEAN_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE_OR_NULL.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(INTEGER_OR_NULL));
- Expect.equals(DOUBLE_OR_NULL, DOUBLE_OR_NULL.intersection(DOUBLE_OR_NULL));
- Expect.equals(CONFLICTING, DOUBLE_OR_NULL.intersection(STRING_OR_NULL));
- Expect.equals(NULL, DOUBLE_OR_NULL.intersection(NULL));
-
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(CONFLICTING));
- Expect.equals(STRING_OR_NULL, STRING_OR_NULL.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(NUMBER));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(INTEGER));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(DOUBLE));
- Expect.equals(STRING, STRING_OR_NULL.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(STRING, STRING_OR_NULL.intersection(STRING));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(NON_PRIMITIVE2));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(POTENTIAL_ARRAY));
- Expect.equals(STRING_OR_NULL, STRING_OR_NULL.intersection(POTENTIAL_STRING));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(BOOLEAN_OR_NULL));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(NUMBER_OR_NULL));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(INTEGER_OR_NULL));
- Expect.equals(CONFLICTING, STRING_OR_NULL.intersection(DOUBLE_OR_NULL));
- Expect.equals(STRING_OR_NULL, STRING_OR_NULL.intersection(STRING_OR_NULL));
- Expect.equals(NULL, STRING_OR_NULL.intersection(NULL));
-
- Expect.equals(CONFLICTING, NULL.intersection(CONFLICTING));
- Expect.equals(NULL, NULL.intersection(UNKNOWN));
- Expect.equals(CONFLICTING, NULL.intersection(BOOLEAN));
- Expect.equals(CONFLICTING, NULL.intersection(NUMBER));
- Expect.equals(CONFLICTING, NULL.intersection(INTEGER));
- Expect.equals(CONFLICTING, NULL.intersection(DOUBLE));
- Expect.equals(CONFLICTING, NULL.intersection(INDEXABLE_PRIMITIVE));
- Expect.equals(CONFLICTING, NULL.intersection(STRING));
- Expect.equals(CONFLICTING, NULL.intersection(READABLE_ARRAY));
- Expect.equals(CONFLICTING, NULL.intersection(MUTABLE_ARRAY));
- Expect.equals(CONFLICTING, NULL.intersection(EXTENDABLE_ARRAY));
- Expect.equals(CONFLICTING, NULL.intersection(NON_PRIMITIVE1));
- Expect.equals(CONFLICTING, NULL.intersection(NON_PRIMITIVE2));
- Expect.equals(NULL, NULL.intersection(POTENTIAL_ARRAY));
- Expect.equals(NULL, NULL.intersection(POTENTIAL_STRING));
- Expect.equals(NULL, NULL.intersection(BOOLEAN_OR_NULL));
- Expect.equals(NULL, NULL.intersection(NUMBER_OR_NULL));
- Expect.equals(NULL, NULL.intersection(INTEGER_OR_NULL));
- Expect.equals(NULL, NULL.intersection(DOUBLE_OR_NULL));
- Expect.equals(NULL, NULL.intersection(STRING_OR_NULL));
- Expect.equals(NULL, NULL.intersection(NULL));
-}
-
-void main() {
- testUnion();
- testIntersection();
-}
« no previous file with comments | « frog/tests/leg/type_checker_test.dart ('k') | frog/tests/leg/type_guard_unuser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698