- Sort Score
- Result 10 results
- Languages All
Results 441 - 450 of 7,605 for expect (0.09 sec)
-
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) -
guava-tests/test/com/google/common/math/DoubleUtilsTest.java
/* * Copyright (C) 2011 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 18:10:55 UTC 2024 - 3K bytes - Viewed (0) -
internal/jwt/parser.go
if string(key) == "accessKey" { if dataType != jsonparser.String { return errors.New("accessKey: Expected string") } c.AccessKey, err = jsonparser.ParseString(value) return err } if string(key) == "aud" { if dataType != jsonparser.String { return errors.New("aud: Expected string") } c.Audience, err = jsonparser.ParseString(value) return err } case 'e':
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 17 16:45:46 UTC 2024 - 14.1K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java
.build()); Model expected = new Model(org.apache.maven.api.model.Model.newBuilder() .namespaceUri("http://maven.apache.org/POM/4.0.0") .modelVersion("4.0.0") .build()); Model actual = transform(initial); assertTrue(equalsDeep(expected, actual)); } @Test void testParent() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.1K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
} catch (AssertionFailedError expected) { String expectedMessage = "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be " + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]"; if (!expected.getMessage().contains(expectedMessage)) { fail("<" + expected.getMessage() + "> expected to contain <" + expectedMessage + ">"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
} catch (AssertionFailedError expected) { String expectedMessage = "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be " + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]"; if (!expected.getMessage().contains(expectedMessage)) { fail("<" + expected.getMessage() + "> expected to contain <" + expectedMessage + ">"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
Random random = new Random(); byte[] expected = factory.getExpected(bytes); // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty int off = expected.length == 0 ? 0 : random.nextInt(expected.length); int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
expected[b][i] = expected[b][bit] ^ expected[b][i ^ bit]; } } } int[][] actual = Crc32cHashFunction.Crc32cHasher.STRIDE_TABLE; assertTrue( "Expected: \n" + Arrays.deepToString(expected) + "\nActual:\n" + Arrays.deepToString(actual), Arrays.deepEquals(expected, actual)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CancelCall.kt
try { call.execute().use { response -> System.out.printf( "%.2f Call was expected to fail, but completed: %s%n", (System.nanoTime() - startNanos) / 1e9f, response, ) } } catch (e: IOException) { System.out.printf( "%.2f Call failed as expected: %s%n", (System.nanoTime() - startNanos) / 1e9f, e, ) } } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java
} public void testFailed() { Exception failureCause = new Exception(); ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(immediateFailedFuture(failureCause))); assertThat(expected).hasCauseThat().isEqualTo(failureCause); } public void testCancelled() throws ExecutionException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 2.3K bytes - Viewed (0)