Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 80 for 42 (0.01 sec)

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

         * well-tested. A purist would object to this, but what can I say, we're dirty cheaters.
         */
        map.put(Integer.class, new Integer(5));
        assertThrows(ClassCastException.class, () -> map.put(Double.class, new Long(42)));
        // Won't compile: map.put(String.class, "x");
      }
    
      public void testPutAndGetInstance() {
        assertNull(map.putInstance(Integer.class, new Integer(5)));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 18:34:30 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

    @NullUnmarked
    public class Murmur3Hash32Test extends TestCase {
      public void testKnownIntegerInputs() {
        assertHash(593689054, murmur3_32().hashInt(0));
        assertHash(-189366624, murmur3_32().hashInt(-42));
        assertHash(-1134849565, murmur3_32().hashInt(42));
        assertHash(-1718298732, murmur3_32().hashInt(Integer.MIN_VALUE));
        assertHash(-1653689534, murmur3_32().hashInt(Integer.MAX_VALUE));
      }
    
      public void testKnownLongInputs() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/ds/DataStoreTest.java

            DataConfig config = new DataConfig();
            DataStoreParams params = new DataStoreParams();
    
            // Add various types of parameters
            params.put("string", "test-value");
            params.put("integer", 42);
            params.put("long", 123456789L);
            params.put("boolean", true);
            params.put("double", 3.14);
    
            Map<String, Object> nestedMap = new HashMap<>();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/curl/CurlResponseTest.java

            response.setEncoding("UTF-8");
            String testContent = "42";
            byte[] data = testContent.getBytes("UTF-8");
            ContentCache cache = new ContentCache(data);
            response.setContentCache(cache);
    
            Integer result = response.getContent(r -> Integer.parseInt(r.getContentAsString()));
    
            assertEquals(Integer.valueOf(42), result);
        }
    
        @Test
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/plugins/form-validator/uk.js

    !1;var b=!1,c=[];c=a.split("");var d=Number(c[7]+c[8]),e=c[0],f=c[1];if(0===e&&f>0)return!1;for(var g=0,h=0;h<7;h++)g+=c[h]*(8-h);for(var i=0,j=0,k=8;k>=2;k--)i+=c[j]*k,j++;for(;g>0;)g-=97;return g=Math.abs(g),d===g&&(b=!0),b||(g%=97,g>=55?g-=55:g+=42,g===d&&(b=!0)),b},errorMessage:"",errorMessageKey:"badUKVatAnswer"}),a.formUtils.addValidator({name:"ukutr",validatorFunction:function(a){var b=[0,6,7,8,9,10,5,4,3,2],c=[2,1,9,8,7,6,5,4,3,2,1],d=0;if(/\d{10}/.test(a)&&10===a.length){for(var e=0;e<1...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java

            assertEquals(3, configHelper.getLoadCallCount());
        }
    
        public void test_load_returnsExpectedValue() {
            configHelper.setLoadCallback(() -> 42);
            assertEquals(42, configHelper.load());
    
            configHelper.setLoadCallback(() -> 0);
            assertEquals(0, configHelper.load());
    
            configHelper.setLoadCallback(() -> -1);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 00:03:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

     *
     * @author Kurt Alfred Kluever
     */
    @NullUnmarked
    public class HashFunctionBenchmark {
    
      // Use a statically configured random instance for all of the benchmarks
      private static final Random random = new Random(42);
    
      @Param({"10", "1000", "100000", "1000000"})
      private int size;
    
      @Param HashFunctionEnum hashFunctionEnum;
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. .github/workflows/scorecard.yml

            with:
              persist-credentials: false
    
          - name: "Run analysis"
            uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
            with:
              results_file: results.sarif
              results_format: sarif
              # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 19:19:31 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java

        public void test_append_shortValue() {
            StringBuilder buf = new StringBuilder();
            Supplier<Object> supplier = () -> Short.valueOf((short) 42);
    
            monitorTarget.append(buf, "shortKey", supplier);
            assertEquals("\"shortKey\":42", buf.toString());
        }
    
        // Test append method with double array
        public void test_append_doubleArray() {
            StringBuilder buf = new StringBuilder();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          return 42;
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          return o instanceof SerializableTicker;
        }
      }
    
      private static class SerializableWeigher<K, V> implements Weigher<K, V>, Serializable {
        @Override
        public int weigh(K key, V value) {
          return 42;
        }
    
        @Override
        public int hashCode() {
          return 42;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
Back to top