- Sort Score
- Result 10 results
- Languages All
Results 131 - 139 of 139 for test_equals (0.08 sec)
-
android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
.put("foo", 1) .build()) .addEqualityGroup( ImmutableSetMultimap.<String, Integer>builder().put("bar", 2).put("foo", 3).build()) .testEquals(); } public void testOf() { assertMultimapEquals(ImmutableSetMultimap.of("one", 1), "one", 1); assertMultimapEquals(ImmutableSetMultimap.of("one", 1, "two", 2), "one", 1, "two", 2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
assertEquals(nbtAddress1.hashCode(), nbtAddress2.hashCode()); assertEquals(testAddressInt, nbtAddress1.hashCode()); } @Test void testEquals() { // Test equals method mockName = new Name(mockConfig, "TEST1", 0x20, null); Name mockName2 = new Name(mockConfig, "TEST2", 0x20, null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
hashFunction.newHasher().putUnencodedChars("ab").putChar('c').hash(), hashFunction.newHasher().putChar('a').putChar('b').putChar('c').hash()) .testEquals(); int size = random.nextInt(2048); byte[] bytes = new byte[size]; random.nextBytes(bytes); String string = new String(bytes, US_ASCII); assertEquals(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 25.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
data2 = DfsReferralDataImpl.fromReferral(mockReferral, reqPath, System.currentTimeMillis() + 10000, consumed); } @Test @DisplayName("Should be equal for same values") void testEquals() { assertEquals(data1, data2); assertEquals(data2, data1); } @Test @DisplayName("Should be equal to itself") void testEqualsSelf() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
File temp2 = createTempFile(); Files.write(ASCII, temp2, UTF_8); Files.copy(temp1, temp2); assertEquals(ASCII, Files.toString(temp2, UTF_8)); } public void testEqual() throws IOException { File asciiFile = getTestFile("ascii.txt"); File i18nFile = getTestFile("i18n.txt"); assertFalse(Files.equal(asciiFile, i18nFile)); assertTrue(Files.equal(asciiFile, asciiFile));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 22.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
.put("foo", 1) .build()) .addEqualityGroup( ImmutableSetMultimap.<String, Integer>builder().put("bar", 2).put("foo", 3).build()) .testEquals(); } public void testOf() { assertMultimapEquals(ImmutableSetMultimap.of("one", 1), "one", 1); assertMultimapEquals(ImmutableSetMultimap.of("one", 1, "two", 2), "one", 1, "two", 2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 28.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
File temp2 = createTempFile(); Files.write(ASCII, temp2, UTF_8); Files.copy(temp1, temp2); assertEquals(ASCII, Files.toString(temp2, UTF_8)); } public void testEqual() throws IOException { File asciiFile = getTestFile("ascii.txt"); File i18nFile = getTestFile("i18n.txt"); assertFalse(Files.equal(asciiFile, i18nFile)); assertTrue(Files.equal(asciiFile, asciiFile));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 22.1K bytes - Viewed (0) -
src/bytes/bytes_test.go
// slices before invoking the functions. var abcd = "abcd" var faces = "☺☻☹" var commas = "1,2,3,4" var dots = "1....2....3....4" type BinOpTest struct { a string b string i int } func TestEqual(t *testing.T) { // Run the tests and check for allocation at the same time. allocs := testing.AllocsPerRun(10, func() { for _, tt := range compareTests { eql := Equal(tt.a, tt.b) if eql != (tt.i == 0) {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0) -
lib/fips140/v1.0.0.zip
x2, x2sq) } var bytes [32]byte _, err := io.ReadFull(rand.Reader, bytes[:]) if err != nil { t.Fatal(err) } x.SetBytes(bytes[:]) x2.Multiply(&x, &x) x2sq.Square(&x) if x2 != x2sq { t.Fatalf("all ones failed\nmul: %x\nsqr: %x\n", x2, x2sq) } } func TestEqual(t *testing.T) { x := Element{1, 1, 1, 1, 1} y := Element{5, 4, 3, 2, 1} eq := x.Equal(&x) if eq != 1 { t.Errorf("wrong about equality") } eq = x.Equal(&y) if eq != 0 { t.Errorf("wrong about inequality") } } func TestInvert(t *testing.T) { x := Element{1,...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)