- Sort Score
- Result 10 results
- Languages All
Results 21 - 29 of 29 for TestContains (0.06 sec)
-
guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
assertThat(ImmutableDoubleArray.of().lastIndexOf(21)).isEqualTo(-1); assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); } public void testContains() { ImmutableDoubleArray iia = ImmutableDoubleArray.of(1, 1, 2, 3, 5, 8); assertThat(iia.contains(1)).isTrue(); assertThat(iia.contains(8)).isTrue(); assertThat(iia.contains(4)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
mmHeap.removeAll(Lists.newArrayList(2, 3)); assertEquals(3, mmHeap.size()); assertTrue("Heap is not intact after removeAll()", mmHeap.isIntact()); } public void testContains() { MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create(); mmHeap.addAll(Lists.newArrayList(1, 1, 2)); assertEquals(3, mmHeap.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
assertWithMessage(x + ", " + y) .that(Booleans.compare(x, y)) .isEqualTo(Boolean.valueOf(x).compareTo(y)); } } } public void testContains() { assertThat(Booleans.contains(EMPTY, false)).isFalse(); assertThat(Booleans.contains(ARRAY_FALSE, true)).isFalse(); assertThat(Booleans.contains(ARRAY_FALSE, false)).isTrue();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 24.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
assertWithMessage(x + ", " + y) .that(Floats.compare(x, y)) .isEqualTo(Float.valueOf(x).compareTo(y)); } } } public void testContains() { assertThat(Floats.contains(EMPTY, (float) 1)).isFalse(); assertThat(Floats.contains(ARRAY1, (float) 2)).isFalse(); assertThat(Floats.contains(ARRAY234, (float) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
assertWithMessage(x + ", " + y) .that(Ints.compare(x, y)) .isEqualTo(Integer.valueOf(x).compareTo(y)); } } } public void testContains() { assertThat(Ints.contains(EMPTY, (int) 1)).isFalse(); assertThat(Ints.contains(ARRAY1, (int) 2)).isFalse(); assertThat(Ints.contains(ARRAY234, (int) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
assertWithMessage(x + ", " + y) .that(Doubles.compare(x, y)) .isEqualTo(Double.valueOf(x).compareTo(y)); } } } public void testContains() { assertThat(Doubles.contains(EMPTY, (double) 1)).isFalse(); assertThat(Doubles.contains(ARRAY1, (double) 2)).isFalse(); assertThat(Doubles.contains(ARRAY234, (double) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/FloatsTest.java
assertWithMessage(x + ", " + y) .that(Floats.compare(x, y)) .isEqualTo(Float.valueOf(x).compareTo(y)); } } } public void testContains() { assertThat(Floats.contains(EMPTY, (float) 1)).isFalse(); assertThat(Floats.contains(ARRAY1, (float) 2)).isFalse(); assertThat(Floats.contains(ARRAY234, (float) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
assertWithMessage(x + ", " + y) .that(Longs.compare(x, y)) .isEqualTo(Long.valueOf(x).compareTo(y)); } } } public void testContains() { assertThat(Longs.contains(EMPTY, (long) 1)).isFalse(); assertThat(Longs.contains(ARRAY1, (long) 2)).isFalse(); assertThat(Longs.contains(ARRAY234, (long) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.8K bytes - Viewed (0) -
src/bytes/bytes_test.go
}{ {[]byte("hello"), []byte("hel"), true}, {[]byte("日本語"), []byte("日本"), true}, {[]byte("hello"), []byte("Hello, world"), false}, {[]byte("東京"), []byte("京東"), false}, } func TestContains(t *testing.T) { for _, tt := range containsTests { if got := Contains(tt.b, tt.subslice); got != tt.want { t.Errorf("Contains(%q, %q) = %v, want %v", tt.b, tt.subslice, got, tt.want) } } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)