Lines Matching full:2
59 RangeSet("2-3 7-12"))
101 self.assertEqual(str(RangeSet("2-10 12")), "2-10 12")
102 self.assertEqual(str(RangeSet("11 2-10 12 1 0")), "0-12")
106 self.assertEqual(RangeSet("0-9").to_string_raw(), "2,0,10")
107 self.assertEqual(RangeSet("2-10 12").to_string_raw(), "4,2,11,12,13")
108 self.assertEqual(RangeSet("11 2-10 12 1 0").to_string_raw(), "2,0,13")
115 self.assertTrue(RangeSet("2-9").monotonic)
116 self.assertTrue(RangeSet("2-9 30 31 35").monotonic)
124 self.assertTrue(RangeSet(data=[2, 9, 30, 31, 31, 32, 35, 36]).monotonic)
133 RangeSet.parse_raw(RangeSet("2-10 12").to_string_raw()),
134 RangeSet("2-10 12"))
136 RangeSet.parse_raw(RangeSet("11 2-10 12 1 0").to_string_raw()),
137 RangeSet("11 2-10 12 1 0"))
145 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])