Lines Matching refs:that

98      * Make sure that we're using RegularContiguousSet.SerializedForm and not
135 ASSERT.that(set.headSet(1)).isEmpty();
136 ASSERT.that(set.headSet(2)).has().item(1);
137 ASSERT.that(set.headSet(3)).has().exactly(1, 2).inOrder();
138 ASSERT.that(set.headSet(4)).has().exactly(1, 2, 3).inOrder();
139 ASSERT.that(set.headSet(Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder();
140 ASSERT.that(set.headSet(1, true)).has().item(1);
141 ASSERT.that(set.headSet(2, true)).has().exactly(1, 2).inOrder();
142 ASSERT.that(set.headSet(3, true)).has().exactly(1, 2, 3).inOrder();
143 ASSERT.that(set.headSet(4, true)).has().exactly(1, 2, 3).inOrder();
144 ASSERT.that(set.headSet(Integer.MAX_VALUE, true)).has().exactly(1, 2, 3).inOrder();
148 ASSERT.that(ContiguousSet.create(Range.closed(1, 3), integers()).headSet(0)).isEmpty();
153 ASSERT.that(set.tailSet(Integer.MIN_VALUE)).has().exactly(1, 2, 3).inOrder();
154 ASSERT.that(set.tailSet(1)).has().exactly(1, 2, 3).inOrder();
155 ASSERT.that(set.tailSet(2)).has().exactly(2, 3).inOrder();
156 ASSERT.that(set.tailSet(3)).has().item(3);
157 ASSERT.that(set.tailSet(Integer.MIN_VALUE, false)).has().exactly(1, 2, 3).inOrder();
158 ASSERT.that(set.tailSet(1, false)).has().exactly(2, 3).inOrder();
159 ASSERT.that(set.tailSet(2, false)).has().item(3);
160 ASSERT.that(set.tailSet(3, false)).isEmpty();
164 ASSERT.that(ContiguousSet.create(Range.closed(1, 3), integers()).tailSet(4)).isEmpty();
169 ASSERT.that(set.subSet(1, 4)).has().exactly(1, 2, 3).inOrder();
170 ASSERT.that(set.subSet(2, 4)).has().exactly(2, 3).inOrder();
171 ASSERT.that(set.subSet(3, 4)).has().item(3);
172 ASSERT.that(set.subSet(3, 3)).isEmpty();
173 ASSERT.that(set.subSet(2, 3)).has().item(2);
174 ASSERT.that(set.subSet(1, 3)).has().exactly(1, 2).inOrder();
175 ASSERT.that(set.subSet(1, 2)).has().item(1);
176 ASSERT.that(set.subSet(2, 2)).isEmpty();
177 ASSERT.that(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder();
178 ASSERT.that(set.subSet(1, true, 3, true)).has().exactly(1, 2, 3).inOrder();
179 ASSERT.that(set.subSet(1, false, 3, true)).has().exactly(2, 3).inOrder();
180 ASSERT.that(set.subSet(1, true, 3, false)).has().exactly(1, 2).inOrder();
181 ASSERT.that(set.subSet(1, false, 3, false)).has().item(2);
193 ASSERT.that(ContiguousSet.create(Range.closed(1, 3), integers()).subSet(4, 6)).isEmpty();
197 ASSERT.that(ContiguousSet.create(Range.closed(1, 3), integers()).subSet(-1, 0)).isEmpty();