- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testCheckPositionIndex_ok (0.09 seconds)
-
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
assertThrows(IndexOutOfBoundsException.class, () -> checkElementIndex(1, 1, "foo")); assertThat(expected).hasMessageThat().isEqualTo("foo (1) must be less than size (1)"); } public void testCheckPositionIndex_ok() { assertEquals(0, checkPositionIndex(0, 0)); assertEquals(0, checkPositionIndex(0, 1)); assertEquals(1, checkPositionIndex(1, 1)); } public void testCheckPositionIndex_badSize() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 19.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/PreconditionsTest.java
assertThrows(IndexOutOfBoundsException.class, () -> checkElementIndex(1, 1, "foo")); assertThat(expected).hasMessageThat().isEqualTo("foo (1) must be less than size (1)"); } public void testCheckPositionIndex_ok() { assertEquals(0, checkPositionIndex(0, 0)); assertEquals(0, checkPositionIndex(0, 1)); assertEquals(1, checkPositionIndex(1, 1)); } public void testCheckPositionIndex_badSize() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 19.1K bytes - Click Count (0)