Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 880 for assertEquals (0.07 sec)

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

            double y = Math.scalb(Math.sqrt(2) - 0.001, exp);
            if (exp < 0) {
              assertEquals(exp + 1, DoubleMath.log2(x, mode));
              assertEquals(exp, DoubleMath.log2(y, mode));
            } else {
              assertEquals(exp + 1, DoubleMath.log2(x, mode));
              assertEquals(exp, DoubleMath.log2(y, mode));
            }
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      }
    
      public void testCreate_empty() {
        assertEquals(ImmutableSet.of(), ContiguousSet.create(Range.closedOpen(1, 1), integers()));
        assertEquals(ImmutableSet.of(), ContiguousSet.closedOpen(1, 1));
        assertEquals(ImmutableSet.of(), ContiguousSet.create(Range.openClosed(5, 5), integers()));
        assertEquals(
            ImmutableSet.of(), ContiguousSet.create(Range.lessThan(Integer.MIN_VALUE), integers()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

        int originalCount = getMultiset().count(e0());
        assertEquals("old count", originalCount, getMultiset().add(e0(), 2));
        assertEquals("old count", originalCount + 2, getMultiset().count(e0()));
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddSeveralTimes() {
        int originalCount = getMultiset().count(e0());
        assertEquals(originalCount, getMultiset().add(e0(), 2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        unfiltered.put("four", 4);
        assertEquals(ImmutableMap.of("two", 2, "three", 3, "four", 4), unfiltered);
        assertEquals(ImmutableMap.of("three", 3, "four", 4), filtered);
    
        unfiltered.remove("three");
        assertEquals(ImmutableMap.of("two", 2, "four", 4), unfiltered);
        assertEquals(ImmutableMap.of("four", 4), filtered);
    
        unfiltered.clear();
        assertEquals(ImmutableMap.of(), unfiltered);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java

            assertEquals(4, res.getVertices().size(), "wrong # of vertices in the resulting graph after resolver");
            assertEquals(
                    2,
                    res.getExcidentEdges(v1).size(),
                    "wrong # of excident edges in the resulting graph entry after resolver");
    
            assertEquals(
                    1,
                    res.getIncidentEdges(v2).size(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java

        }
    
        @Test
        void testTrailingSlash() {
            assertEquals("", normalize(""));
            assertEquals("http://server.org/dir", normalize("http://server.org/dir"));
            assertEquals("http://server.org/dir/", normalize("http://server.org/dir/"));
        }
    
        @Test
        void testRemovalOfParentRefs() {
            assertEquals("http://server.org/child", normalize("http://server.org/parent/../child"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

          // we should have seen as many bytes as the next multiple of chunk after expectedBytes - 1
          assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize));
          assertEquals(expectedBytes / chunkSize, processCalled);
          assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
        }
    
        // returns the minimum x such as x >= a && (x % b) == 0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

        public void testEncode() throws Exception {
            assertEquals("1", ENCODED_DATA, Base64Util.encode(BINARY_DATA));
            System.out.println(Base64Util.encode(new byte[] { 'a', 'b', 'c' }));
        }
    
        /**
         * @throws Exception
         */
        public void testDecode() throws Exception {
            final byte[] decodedData = Base64Util.decode(ENCODED_DATA);
            assertEquals("1", BINARY_DATA.length, decodedData.length);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        assertTrue(results.session_ticket_supported)
        assertEquals("Probably Okay", results.rating)
        // TODO map to expected versions automatically, test ignored for now.  Run manually.
        assertEquals("TLS 1.3", results.tls_version)
        assertEquals(0, results.insecure_cipher_suites.size)
    
        assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion)
        assertEquals(Protocol.HTTP_2, response.protocol)
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java

            logger.info(content);
            assertEquals("", content);
        }
    
        public void test_getEncoding_utf8() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/test_utf8.xml");
            final BufferedInputStream bis = new BufferedInputStream(in);
            final String encoding = xmlExtractor.getEncoding(bis);
            CloseableUtil.closeQuietly(bis);
            assertEquals("UTF-8", encoding);
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top