public void Or_With_End_Synchronized_Right_Advanced_Overlapping_Value_With_Trailing_Values() { var ____left = BitsetHelpers.ToValues(0, "*****************************----***----**-"); var ___right = BitsetHelpers.ToValues(0, "--------------***************--------------"); var __result = BitsetHelpers.ToValues(0, "*****************************----***----**-"); var leftBitset = ____left.ToOptimizedBitset(); var rightBitset = ___right.ToOptimizedBitset(); var actual = leftBitset.Or(rightBitset).GetValues(); var expected = __result.ToOptimizedBitset().GetValues(); CollectionAssert.AreEqual(actual, expected); }
public void Or_With_Left_Enclosing_Value() { var ____left = BitsetHelpers.ToValues(0, "****************************"); var ___right = BitsetHelpers.ToValues(0, "-------**************-------"); var __result = BitsetHelpers.ToValues(0, "****************************"); var leftBitset = ____left.ToOptimizedBitset(); var rightBitset = ___right.ToOptimizedBitset(); var actual = leftBitset.Or(rightBitset).GetValues(); var expected = __result.ToOptimizedBitset().GetValues(); CollectionAssert.AreEqual(actual, expected); }
public void And_With_Empty_Matching_Values() { var ____left = BitsetHelpers.ToValues(0, "----------------------------"); var ___right = BitsetHelpers.ToValues(0, "----------------------------"); var __result = BitsetHelpers.ToValues(0, "----------------------------"); var leftBitset = ____left.ToOptimizedBitset(); var rightBitset = ___right.ToOptimizedBitset(); var actual = leftBitset.And(rightBitset).GetValues(); var expected = __result.ToOptimizedBitset().GetValues(); CollectionAssert.AreEqual(actual, expected); }
public void And_With_Start_Synchronized_Left_Advanced_Ending_Overlapping_Value() { var ____left = BitsetHelpers.ToValues(0, "***************--------------"); var ___right = BitsetHelpers.ToValues(0, "*********************--------"); var __result = BitsetHelpers.ToValues(0, "***************--------------"); var leftBitset = ____left.ToOptimizedBitset(); var rightBitset = ___right.ToOptimizedBitset(); var actual = leftBitset.And(rightBitset).GetValues(); var expected = __result.ToOptimizedBitset().GetValues(); CollectionAssert.AreEqual(actual, expected); }
public void NotOfEmptyIsOverall() { var ____left = BitsetHelpers.ToValues(0, "----------------------------"); var ____full = BitsetHelpers.ToValues(0, "****************************"); var __result = BitsetHelpers.ToValues(0, "****************************"); var leftBitset = ____left.ToOptimizedBitset(); var fullBitset = ____full.ToOptimizedBitset(); var actual = leftBitset.Not(fullBitset).GetValues(); var expected = __result.ToOptimizedBitset().GetValues(); CollectionAssert.AreEqual(actual, expected); }
public void AndNot_With_Left_Empty_Right_Full_Matching_Values() { var ____left = BitsetHelpers.ToValues(0, "----------------------------"); var ___right = BitsetHelpers.ToValues(0, "****************************"); var __result = BitsetHelpers.ToValues(0, "----------------------------"); var ____full = BitsetHelpers.ToValues(0, "****************************"); var leftBitset = ____left.ToOptimizedBitset(); var rightBitset = ___right.ToOptimizedBitset(); var fullBitset = ____full.ToOptimizedBitset(); var actual = leftBitset.AndNot(rightBitset, fullBitset).GetValues(); var expected = __result.ToOptimizedBitset().GetValues(); CollectionAssert.AreEqual(actual, expected); }
public void AndNot_With_Non_Overlapping_Values_Returns_Empty() { var ____left = BitsetHelpers.ToValues(0, "---------------*************"); var ___right = BitsetHelpers.ToValues(0, "***************-------------"); var __result = BitsetHelpers.ToValues(0, "---------------*************"); var ____full = BitsetHelpers.ToValues(0, "****************************"); var leftBitset = ____left.ToOptimizedBitset(); var rightBitset = ___right.ToOptimizedBitset(); var fullBitset = ____full.ToOptimizedBitset(); var actual = leftBitset.AndNot(rightBitset, fullBitset).GetValues(); var expected = __result.ToOptimizedBitset().GetValues(); CollectionAssert.AreEqual(actual, expected); }