Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 989 for assert_equal (0.15 sec)

  1. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

            activityHelper.login(OptionalThing.empty());
            assertEquals("action:LOGIN\tuser:-\tpermissions:-", localLogMsg.get());
    
            activityHelper.login(createUser("testuser", new String[0]));
            assertEquals("action:LOGIN\tuser:testuser\tpermissions:-", localLogMsg.get());
    
            activityHelper.login(createUser("testuser", new String[] { "111", "222" }));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java

        assertEquals(ImmutableMap.of("banana", 6), filtered.headMap("dog"));
        assertEquals(ImmutableMap.of(), filtered.headMap("banana"));
        assertEquals(ImmutableMap.of("banana", 6, "dog", 3), filtered.headMap("emu"));
    
        assertEquals(ImmutableMap.of("banana", 6), filtered.subMap("banana", "dog"));
        assertEquals(ImmutableMap.of("dog", 3), filtered.subMap("cat", "emu"));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/escape/EscapersTest.java

        EscaperAsserts.assertBasic(unicodeEscaper);
        assertEquals("<hello><hi><lo>", charEscaper.escape("x\uD800\uDC00"));
        assertEquals("<hello><hi><lo>", unicodeEscaper.escape("x\uD800\uDC00"));
    
        // Test that wrapped escapers acquire good Unicode semantics.
        assertEquals("<hi><hello><lo>", charEscaper.escape("\uD800x\uDC00"));
        try {
          unicodeEscaper.escape("\uD800x\uDC00");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

      // If this test fails, all bets are off
      public void testReallySimpleFingerprints() {
        assertEquals(8581389452482819506L, fingerprint("test".getBytes(UTF_8)));
        // 32 characters long
        assertEquals(-4196240717365766262L, fingerprint(Strings.repeat("test", 8).getBytes(UTF_8)));
        // 256 characters long
        assertEquals(3500507768004279527L, fingerprint(Strings.repeat("test", 64).getBytes(UTF_8)));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 19 14:00:24 GMT 2016
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractImmutableBiMapMapInterfaceTest.java

        for (Entry<K, V> entry : map.entrySet()) {
          assertEquals(entry.getKey() + "=" + entry.getValue(), entry.toString());
          assertEquals(entry.getKey(), bimap.inverse().get(entry.getValue()));
        }
    
        assertEquals("{" + JOINER.join(map.entrySet()) + "}", map.toString());
        assertEquals("[" + JOINER.join(map.entrySet()) + "]", map.entrySet().toString());
        assertEquals("[" + JOINER.join(map.keySet()) + "]", map.keySet().toString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 09 16:16:28 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        assertMapsEqual(expected, map);
        assertEquals(expected.get("a"), map.get("a"));
        assertEquals(expected.containsKey("a"), map.containsKey("a"));
        assertEquals(expected.get("b"), map.get("b"));
        assertEquals(expected.containsKey("b"), map.containsKey("b"));
        assertEquals(expected.get("c"), map.get("c"));
        assertEquals(expected.containsKey("c"), map.containsKey("c"));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertTrue(bimap.isEmpty());
        assertEquals("{}", bimap.toString());
        assertEquals(HashBiMap.create(), bimap);
        bimap.put(Currency.DOLLAR, Country.CANADA);
        assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR));
        assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA));
      }
    
      public void testCreateFromMap() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertTrue(bimap.isEmpty());
        assertEquals("{}", bimap.toString());
        assertEquals(HashBiMap.create(), bimap);
        bimap.put(Currency.DOLLAR, Country.CANADA);
        assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR));
        assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA));
      }
    
      public void testCreateFromMap() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        // completed.
        assertEquals(1, listener.size());
        RemovalNotification<String, String> notification = listener.remove();
        assertEquals("a", notification.getKey());
        assertEquals("a", notification.getValue());
        assertEquals(1, cache.size());
        assertEquals("b", cache.getUnchecked("b"));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/UserAgentHelperTest.java

            assertEquals(UserAgentType.IE, userAgentHelper.getUserAgentType());
        }
    
        public void test_getUserAgentType_IE10() {
            getMockRequest().addHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)");
            assertEquals(UserAgentType.IE, userAgentHelper.getUserAgentType());
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top