Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 135 for testEquals (0.08 sec)

  1. guava-tests/test/com/google/common/math/StatsTest.java

            .addEqualityGroup(new Stats(5, -5.5, 55.6, -5.55, 5.55))
            .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.56, 5.55))
            .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.55, 5.56))
            .testEquals();
      }
    
      public void testSerializable() {
        SerializableTester.reserializeAndAssert(MANY_VALUES_STATS_ITERABLE);
      }
    
      public void testToString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        multimap.put("foo", 1);
        multimap.put("bar", 2);
        Multimap<String, Integer> multimapView = Multimaps.forMap(map);
        new EqualsTester().addEqualityGroup(multimap, multimapView).addEqualityGroup(map).testEquals();
        Multimap<String, Integer> multimap2 = HashMultimap.create();
        multimap2.put("foo", 1);
        assertFalse(multimapView.equals(multimap2));
        multimap2.put("bar", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/FarthestConflictResolverTest.java

            assertResolveConflict(a2n, a2n, a1n);
        }
    
        /**
         * Tests that <code>a:1.0</code> wins in the scenario:
         * <pre>
         * a:1.0
         * a:2.0
         * </pre>
         */
        @Test
        void testEqual() {
            ResolutionNode a1n = createResolutionNode(a1);
            ResolutionNode a2n = createResolutionNode(a2);
    
            assertResolveConflict(a1n, a1n, a2n);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/NearestConflictResolverTest.java

            assertResolveConflict(a1n, a2n, a1n);
        }
    
        /**
         * Tests that <code>a:1.0</code> wins in the scenario:
         * <pre>
         * a:1.0
         * a:2.0
         * </pre>
         */
        @Test
        void testEqual() {
            ResolutionNode a1n = createResolutionNode(a1);
            ResolutionNode a2n = createResolutionNode(a2);
    
            assertResolveConflict(a1n, a1n, a2n);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/OldestConflictResolverTest.java

            assertResolveConflict(a1n, a2n, a1n);
        }
    
        /**
         * Tests that <code>a:1.0</code> wins in the scenario:
         * <pre>
         * a:1.0
         * a:2.0
         * </pre>
         */
        @Test
        void testEqual() {
            ResolutionNode a1n = createResolutionNode(a1);
            ResolutionNode a2n = createResolutionNode(a2);
    
            assertResolveConflict(a1n, a1n, a2n);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolverTest.java

            assertResolveConflict(a2n, a2n, a1n);
        }
    
        /**
         * Tests that <code>a:2.0</code> wins in the scenario:
         * <pre>
         * a:1.0
         * a:2.0
         * </pre>
         */
        @Test
        void testEqual() {
            ResolutionNode a1n = createResolutionNode(a1);
            ResolutionNode a2n = createResolutionNode(a2);
    
            assertResolveConflict(a2n, a1n, a2n);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

    public class PrunedTagTest extends UnitFessTestCase {
    
        public void test_hashCode() {
            PrunedTag prunedtag = new PrunedTag("tag");
    
            assertTrue(prunedtag.hashCode() >= 0);
    
        }
    
        public void test_equals() {
    
            PrunedTag prunedtag = new PrunedTag("tag");
    
            assertTrue(prunedtag.equals(prunedtag));
            assertEquals(false, prunedtag.equals(null));
            assertEquals(false, prunedtag.equals(""));
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. internal/etag/etag_test.go

    	{A: "3b83ef96387f14655fc854ddc3c6bd57", B: "3b83ef96387f14655fc854ddc3c6bd57-2", Equal: false}, // 2
    	{A: "3b83ef96387f14655fc854ddc3c6bd57", B: "ceb8853ddc5086cc4ab9e149f8f09c88", Equal: false},   // 3
    }
    
    func TestEqual(t *testing.T) {
    	for i, test := range equalTests {
    		A, err := Parse(test.A)
    		if err != nil {
    			t.Fatalf("Test %d: %v", i, err)
    		}
    		B, err := Parse(test.B)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
Back to top