Search Options

Results per page
Sort
Preferred Languages
Advance

Results 881 - 890 of 1,297 for expectEq (0.13 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

            when:
            repository.put('class', value)
    
            then:
            repository.find('class') == value
            repository.get('class') == value
        }
    
        def findReturnsNullForUnknownClass() {
            expect:
            repository.find('unknown') == null
        }
    
        def getFailsForUnknownClass() {
            given:
            repository.put('unkown', new TestDomainObject('unknown'))
    
            when:
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. .github/ISSUE_TEMPLATE/tensorflow_issue_template.yaml

          label: GPU model and memory
          description: If compiling from source
      - type: textarea
        id: what-happened
        attributes:
          label: Current behavior?
          description: Also tell us, what did you expect to happen?
          placeholder: Tell us what you see!
        validations:
          required: true
      - type: textarea
        id: code-to-reproduce
        attributes:
          label: Standalone code to reproduce the issue
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Jun 28 18:25:42 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

        if (it.length < 2) {
          "0$it"
        } else {
          it
        }
      }
    
    internal fun commonHeadersOf(vararg inputNamesAndValues: String): Headers {
      require(inputNamesAndValues.size % 2 == 0) { "Expected alternating header names and values" }
    
      // Make a defensive copy and clean it up.
      val namesAndValues: Array<String> = arrayOf(*inputNamesAndValues)
      for (i in namesAndValues.indices) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        assertEquals(
            fingerprint(stringA.getBytes(ISO_8859_1)), fingerprint(stringB.getBytes(ISO_8859_1)));
      }
    
      public void testPutNonChars() {
        Hasher hasher = HASH_FN.newHasher();
        // Expected data is 0x0100010100000000
        hasher
            .putBoolean(true)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(false)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradient_checker_test.cc

    // These tests should not be confused with `[*]_grad_test` which compare the
    // result of `gradient_checker` and `[*]_grad`. The tests here test the
    // functionality of `gradient_checker` by comparing the result with expected
    // manual user-provided gradients.
    class GradientCheckerTest
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. docs/recipes.md

            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: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        checkNotNull(cells);
        if (rowComparator != null || columnComparator != null) {
          /*
           * This sorting logic leads to a cellSet() ordering that may not be expected and that isn't
           * documented in the Javadoc. If a row Comparator is provided, cellSet() iterates across the
           * columns in the first row, the columns in the second row, etc. If a column Comparator is
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        try {
          collection.retainAll(target.toRetain);
          String message = Platform.format("retainAll(%s) should throw", target);
          fail(message);
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      private void expectReturnsFalseOrThrows(Target target) {
        String message = Platform.format("retainAll(%s) should return false or throw", target);
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(10, ticker.read());
        assertEquals(20, ticker.read());
    
        for (TimeUnit timeUnit : TimeUnit.values()) {
          ticker.setAutoIncrementStep(0, timeUnit);
          assertEquals(
              "Expected no auto-increment when setting autoIncrementStep to 0 " + timeUnit,
              30,
              ticker.read());
        }
      }
    
      public void testAutoIncrement_negative() {
        FakeTicker ticker = new FakeTicker();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

                    @Override
                    public Integer apply(String key) {
                      return multiset.count(key);
                    }
                  });
          assertEquals("Counts not as expected", Ints.asList(deltas), actualCounts);
        } finally {
          pool.shutdownNow();
        }
    
        // Since we have access to the backing map, verify that there are no zeroes in the map
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top