Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 825 for assertequal (0.16 sec)

  1. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        Iterator<Entry<String, Integer>> entryIterator = multimap.entries().iterator();
        assertEquals(immutableEntry("foo", 5), entryIterator.next());
        assertEquals(immutableEntry("bar", 4), entryIterator.next());
        assertEquals(immutableEntry("foo", 3), entryIterator.next());
        assertEquals(immutableEntry("cow", 2), entryIterator.next());
        assertEquals(immutableEntry("bar", 1), entryIterator.next());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/io/MultiReaderTest.java

        String expected = begin + end;
        assertEquals(expected.charAt(0), joinedReader.read());
        CharStreams.skipFully(joinedReader, 1);
        assertEquals(expected.charAt(2), joinedReader.read());
        CharStreams.skipFully(joinedReader, 4);
        assertEquals(expected.charAt(7), joinedReader.read());
        CharStreams.skipFully(joinedReader, 1);
        assertEquals(expected.charAt(9), joinedReader.read());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/MultiReaderTest.java

        String expected = begin + end;
        assertEquals(expected.charAt(0), joinedReader.read());
        CharStreams.skipFully(joinedReader, 1);
        assertEquals(expected.charAt(2), joinedReader.read());
        CharStreams.skipFully(joinedReader, 4);
        assertEquals(expected.charAt(7), joinedReader.read());
        CharStreams.skipFully(joinedReader, 1);
        assertEquals(expected.charAt(9), joinedReader.read());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/PathMappingHelperTest.java

            String text = "\"file:///home/\"";
            assertEquals("\"http://localhost/\"", pathMappingHelper.replaceUrls(text));
    
            text = "\"file:///home/user/\"";
            assertEquals("\"http://localhost/user/\"", pathMappingHelper.replaceUrls(text));
    
            text = "\"aaafile:///home/user/\"";
            assertEquals("\"aaahttp://localhost/user/\"", pathMappingHelper.replaceUrls(text));
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTestType.java

            assertNotNull(res.getClasspath(), "null classpath after runtime transform");
            assertEquals(4, res.getClasspath().size(), "runtime classpath should have 4 entries");
    
            ArtifactMetadata md = res.getClasspath().get(3);
            assertEquals("1.1", md.getVersion(), "runtime artifact version should be 1.1");
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.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. guava-tests/test/com/google/common/net/PercentEscaperTest.java

        assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF');
    
        // simple string tests
        assertEquals("", e.escape(""));
        assertEquals("safestring", e.escape("safestring"));
        assertEquals("embedded%00null", e.escape("embedded\0null"));
        assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar"));
      }
    
      /** Tests the various ways that the space character can be handled */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/IntMathTest.java

          for (int b : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b)));
          }
        }
      }
    
      public void testGCDZero() {
        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          assertEquals(a, IntMath.gcd(a, 0));
          assertEquals(a, IntMath.gcd(0, a));
        }
        assertEquals(0, IntMath.gcd(0, 0));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

       *
       * @param escaper the non-null escaper to test
       */
      public static void assertBasic(Escaper escaper) throws IOException {
        // Escapers operate on characters: no characters, no escaping.
        Assert.assertEquals("", escaper.escape(""));
        // Assert that escapers throw null pointer exceptions.
        try {
          escaper.escape((String) null);
          Assert.fail("exception not thrown when escaping a null string");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
Back to top