• Home
  • Raw
  • Download

Lines Matching refs:Parse

39   RangeSet rs = RangeSet::Parse("2,1,10");  in TEST()
44 RangeSet rs2 = RangeSet::Parse("4,15,20,1,10"); in TEST()
51 ASSERT_EQ(rs, RangeSet::Parse(" 2, 1, 10")); in TEST()
52 ASSERT_FALSE(RangeSet::Parse("2,1,10 ")); in TEST()
57 ASSERT_FALSE(RangeSet::Parse("")); in TEST()
58 ASSERT_FALSE(RangeSet::Parse("2,1")); in TEST()
61 ASSERT_FALSE(RangeSet::Parse("a,1,1")); in TEST()
62 ASSERT_FALSE(RangeSet::Parse("3,1,1")); in TEST()
63 ASSERT_FALSE(RangeSet::Parse("-3,1,1")); in TEST()
64 ASSERT_FALSE(RangeSet::Parse("2,1,2,3")); in TEST()
67 ASSERT_FALSE(RangeSet::Parse("2,1,10a")); in TEST()
68 ASSERT_FALSE(RangeSet::Parse("2,,10")); in TEST()
71 ASSERT_FALSE(RangeSet::Parse("2,2,2")); in TEST()
72 ASSERT_FALSE(RangeSet::Parse("2,2,1")); in TEST()
76 RangeSet rs = RangeSet::Parse("2,1,6"); in TEST()
91 ASSERT_EQ(RangeSet::Parse("2,3,5"), rs); in TEST()
94 ASSERT_EQ(RangeSet::Parse("4,3,5,5,15"), rs); in TEST()
109 ASSERT_EQ(RangeSet::Parse("2,5,15"), rs); in TEST()
113 RangeSet r1 = RangeSet::Parse("2,1,6"); in TEST()
114 RangeSet r2 = RangeSet::Parse("2,5,10"); in TEST()
118 r2 = RangeSet::Parse("2,6,10"); in TEST()
122 ASSERT_FALSE(RangeSet::Parse("2,3,5").Overlaps(RangeSet::Parse("2,5,7"))); in TEST()
123 ASSERT_FALSE(RangeSet::Parse("2,5,7").Overlaps(RangeSet::Parse("2,3,5"))); in TEST()
127 RangeSet rs1 = RangeSet::Parse("2,1,2"); in TEST()
129 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("2,1,2") }), rs1.Split(1)); in TEST()
131 RangeSet rs2 = RangeSet::Parse("2,5,10"); in TEST()
133 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("2,5,8"), RangeSet::Parse("2,8,10") }), in TEST()
136 RangeSet rs3 = RangeSet::Parse("4,0,1,5,10"); in TEST()
138 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("4,0,1,5,7"), RangeSet::Parse("2,7,10") }), in TEST()
141 RangeSet rs4 = RangeSet::Parse("6,1,3,3,4,4,5"); in TEST()
143 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("2,1,3"), RangeSet::Parse("2,3,4"), in TEST()
144 RangeSet::Parse("2,4,5") }), in TEST()
147 RangeSet rs5 = RangeSet::Parse("2,0,10"); in TEST()
149 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("2,0,3"), RangeSet::Parse("2,3,6"), in TEST()
150 RangeSet::Parse("2,6,8"), RangeSet::Parse("2,8,10") }), in TEST()
153 RangeSet rs6 = RangeSet::Parse( in TEST()
161 RangeSet::Parse("12,0,268,269,271,286,447,8350,32770,33022,98306,98558,118472"), in TEST()
162 RangeSet::Parse("8,118472,163842,164094,196609,204800,229378,229630,237216"), in TEST()
163 RangeSet::Parse("4,237216,294914,295166,347516"), RangeSet::Parse("2,347516,457564") }), in TEST()
180 RangeSet rs2 = RangeSet::Parse("2,1,5"); in TEST()
185 RangeSet rs3 = RangeSet::Parse("2,1,5"); in TEST()
187 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("2,1,2"), RangeSet::Parse("2,2,3"), in TEST()
188 RangeSet::Parse("2,3,4"), RangeSet::Parse("2,4,5") }), in TEST()
192 RangeSet rs4 = RangeSet::Parse("2,1,5"); in TEST()
194 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("2,1,2"), RangeSet::Parse("2,2,3"), in TEST()
195 RangeSet::Parse("2,3,4"), RangeSet::Parse("2,4,5") }), in TEST()
199 RangeSet rs5 = RangeSet::Parse("2,0,3"); in TEST()
201 ASSERT_EQ((std::vector<RangeSet>{ RangeSet::Parse("2,0,1"), RangeSet::Parse("2,1,2"), in TEST()
202 RangeSet::Parse("2,2,3") }), in TEST()
207 RangeSet rs = RangeSet::Parse("2,1,10"); in TEST()
218 ASSERT_EQ(RangeSet::Parse("2,1,6"), RangeSet::Parse("2,1,6")); in TEST()
220 ASSERT_NE(RangeSet::Parse("2,1,6"), RangeSet::Parse("2,1,7")); in TEST()
221 ASSERT_NE(RangeSet::Parse("2,1,6"), RangeSet::Parse("2,2,7")); in TEST()
224 ASSERT_NE(RangeSet::Parse("4,1,5,8,10"), RangeSet::Parse("4,8,10,1,5")); in TEST()
228 RangeSet rs = RangeSet::Parse("4,1,5,8,10"); in TEST()
245 ASSERT_EQ("", RangeSet::Parse("").ToString()); in TEST()
246 ASSERT_EQ("2,1,6", RangeSet::Parse("2,1,6").ToString()); in TEST()
247 ASSERT_EQ("4,1,5,8,10", RangeSet::Parse("4,1,5,8,10").ToString()); in TEST()
248 ASSERT_EQ("6,1,3,4,6,15,22", RangeSet::Parse("6,1,3,4,6,15,22").ToString()); in TEST()