- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for testContains (0.2 sec)
-
android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java
.testEquals(); } public void testToString() { assertEquals("{a={1=blah}}", testTable.toString()); } public void testContains() { assertTrue(testTable.contains('a', 1)); assertFalse(testTable.contains('a', 2)); assertFalse(testTable.contains('A', 1)); assertFalse(testTable.contains('A', 2)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4K bytes - Viewed (0) -
utils/utils_test.go
} for _, c := range cases { if key := ToStringKey(c.values...); key != c.key { t.Errorf("%v: expected %v, got %v", c.values, c.key, key) } } } func TestContains(t *testing.T) { containsTests := []struct { name string elems []string elem string out bool }{ {"exists", []string{"1", "2", "3"}, "1", true},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java
assertEquals( ImmutableMap.of( 1, ImmutableMap.of('a', "foo", 'b', "bar"), 2, ImmutableMap.of('a', "baz")), testInstance.columnMap()); } } public void testContains() { for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { assertTrue(testInstance.contains('a', 1)); assertTrue(testInstance.contains('b', 1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
assertEquals(expectedSize, table.size()); } @Override public void setUp() throws Exception { super.setUp(); table = create(); } public void testContains() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertTrue(table.contains("foo", 1)); assertTrue(table.contains("bar", 1)); assertTrue(table.contains("foo", 3));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 6.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java
assertEquals( Integer.MAX_VALUE, ContiguousSet.create(Range.<Integer>all(), integers()).last().intValue()); } public void testContains() { ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers()); assertFalse(set.contains(0)); assertTrue(set.contains(1)); assertTrue(set.contains(2));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 19K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
assertEquals(expectedSize, table.size()); } @Override public void setUp() throws Exception { super.setUp(); table = create(); } public void testContains() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertTrue(table.contains("foo", 1)); assertTrue(table.contains("bar", 1)); assertTrue(table.contains("foo", 3));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 6.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
public void testHashCode() { for (byte value : VALUES) { assertThat(Bytes.hashCode(value)).isEqualTo(((Byte) value).hashCode()); } } public void testContains() { assertThat(Bytes.contains(EMPTY, (byte) 1)).isFalse(); assertThat(Bytes.contains(ARRAY1, (byte) 2)).isFalse(); assertThat(Bytes.contains(ARRAY234, (byte) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 17.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ContiguousSetTest.java
assertEquals( Integer.MAX_VALUE, ContiguousSet.create(Range.<Integer>all(), integers()).last().intValue()); } public void testContains() { ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers()); assertFalse(set.contains(0)); assertTrue(set.contains(1)); assertTrue(set.contains(2));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 19K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
assertWithMessage(x + ", " + y) .that(Math.signum(Chars.compare(x, y))) .isEqualTo(Math.signum(Character.valueOf(x).compareTo(y))); } } } public void testContains() { assertThat(Chars.contains(EMPTY, (char) 1)).isFalse(); assertThat(Chars.contains(ARRAY1, (char) 2)).isFalse(); assertThat(Chars.contains(ARRAY234, (char) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 25.6K bytes - Viewed (0)