Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 1,270 for expectEq (0.11 sec)

  1. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        TestHasher hasher = new TestHasher(); // byte order insignificant here
        byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8};
        hasher.putByte((byte) 1);
        hasher.putBytes(new byte[] {2, 3, 4, 5, 6});
        hasher.putByte((byte) 7);
        hasher.putBytes(new byte[] {});
        hasher.putBytes(new byte[] {8});
        hasher.assertBytes(expected);
      }
    
      public void testShort() {
        TestHasher hasher = new TestHasher();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      static void testSort(byte[] input, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedBytes.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(byte[] input, int from, int to, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedBytes.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
      public void testSortIndexed() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java

                    "We expected the release transformation and got " + tms.get(0));
    
            assertTrue(
                    tms.get(1) instanceof LatestArtifactTransformation,
                    "We expected the latest transformation and got " + tms.get(1));
    
            assertTrue(
                    tms.get(2) instanceof SnapshotTransformation,
                    "We expected the snapshot transformation and got " + tms.get(2));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        taskRunner.newQueue().execute("connect") {
          assertFailsWith<IOException> {
            finder.find()
          }.also { expected ->
            assertThat(expected).hasMessage("boom 0!")
            assertThat(expected.suppressed.single()).hasMessage("boom 1!")
          }
        }
    
        taskFaker.runTasks()
        assertEvents(
          "take plan 0",
          "plan 0 TCP connecting...",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        TestHasher hasher = new TestHasher(); // byte order insignificant here
        byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8};
        hasher.putByte((byte) 1);
        hasher.putBytes(new byte[] {2, 3, 4, 5, 6});
        hasher.putByte((byte) 7);
        hasher.putBytes(new byte[] {});
        hasher.putBytes(new byte[] {8});
        hasher.assertBytes(expected);
      }
    
      public void testShort() {
        TestHasher hasher = new TestHasher();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

        assertFailsWith<IOException> {
          client.newCall(request).execute()
        }.also { expected ->
          expected.assertSuppressed {
            val suppressed = it.single()
            assertThat(suppressed).isInstanceOf(IOException::class.java)
            assertThat(suppressed).isNotSameAs(expected)
          }
        }
      }
    
      /** Confirm suppressed exceptions that occur after connecting are returned. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/PACTest.java

            String expect = "9121D44B1AD560C7A3152B3CAC453AB4";
            testRC4HMac(5, data, key, expect);
        }
    
    
        /**
         * @param data
         * @param key
         * @param expect
         * @throws GeneralSecurityException
         * @throws PACDecodingException
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Oct 01 12:01:17 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  8. internal/http/listener_test.go

    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    					t.Fatalf("Test %d:, listenErrs[%d] error: expected = <nil>, got = %v", testIdx+1, i, listenErrs[i])
    				}
    			} else if listenErrs[i] == nil {
    				t.Fatalf("Test %d: listenErrs[%d]: expected = %v, got = <nil>", testIdx+1, i, expectedListenErr)
    			}
    		}
    		if listener != nil {
    			listener.Close()
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        assertEquals(
            "put(present, value) should return the associated value",
            getValueForNullKey(),
            put(newEntry));
    
        Entry<K, V>[] expected = createArrayWithNullKey();
        expected[getNullLocation()] = newEntry;
        expectContents(expected);
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPut_nullKeyUnsupported() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = asList("one", "two").iterator();
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator));
        assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
      }
    
      public void testGetOnlyElement_noDefault_fiveElements() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
Back to top