Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for assertWithMessage (0.19 sec)

  1. android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java

            if (expected == 0) {
              assertWithMessage(x + ", " + y).that(actual).isEqualTo(expected);
            } else if (expected < 0) {
              assertWithMessage(x + ", " + y + " (expected: " + expected + ", actual" + actual + ")")
                  .that(actual < 0)
                  .isTrue();
            } else {
              assertWithMessage(x + ", " + y + " (expected: " + expected + ", actual" + actual + ")")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.tryParse("9999999999999999")).isNull();
        assertWithMessage("Max integer + 1")
            .that(Ints.tryParse(Long.toString(((long) GREATEST) + 1)))
            .isNull();
        assertWithMessage("Max integer * 10")
            .that(Ints.tryParse(Long.toString(((long) GREATEST) * 10)))
            .isNull();
        assertWithMessage("Min integer - 1")
            .that(Ints.tryParse(Long.toString(((long) LEAST) - 1)))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

          Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone());
          assertWithMessage("Wrong keys from " + algorithm).that(quantiles.keySet()).isEqualTo(indexes);
          for (int i : indexes) {
            assertWithMessage("Mismatch between %s and %s at %s", algorithm, REFERENCE_ALGORITHM, i)
                .that(quantiles.get(i))
                .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

     * limitations under the License.
     */
    
    package com.google.common.primitives;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.ImmutableSet;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          if (values.hasAnyNonFinite()) {
            assertWithMessage("population covariance of " + values).that(populationCovariance).isNaN();
            assertWithMessage("population covariance by addAll(PairedStats) of " + values)
                .that(populationCovarianceByAddAllPartitionedPairedStats)
                .isNaN();
          } else {
            assertWithMessage("population covariance of " + values)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          if (values.hasAnyNonFinite()) {
            assertWithMessage("population covariance of " + values).that(populationCovariance).isNaN();
            assertWithMessage("population covariance by addAll(PairedStats) of " + values)
                .that(populationCovarianceByAddAllPartitionedPairedStats)
                .isNaN();
          } else {
            assertWithMessage("population covariance of " + values)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

        for (int value : TEST_INTS) {
          assertWithMessage(UnsignedInts.toString(value))
              .that(UnsignedInteger.fromIntBits(value).intValue())
              .isEqualTo(value);
        }
      }
    
      public void testFromIntBitsLongValue() {
        for (int value : TEST_INTS) {
          long expected = value & 0xffffffffL;
          assertWithMessage(UnsignedInts.toString(value))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTest.java

    import static com.google.common.truth.Truth.assertWithMessage;
    
    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import junit.framework.TestCase;
    
    /** Test for {@link ListenableFuture}. */
    public class ListenableFutureTest extends TestCase {
      public void testNoNewApis() throws Exception {
        assertWithMessage(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 19:48:16 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static com.google.common.util.concurrent.MoreExecutors.shutdownAndAwaitTermination;
    import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

          if (values.hasAnyNaN()) {
            assertWithMessage("mean of " + values).that(mean).isNaN();
            assertWithMessage("mean by addAll(Stats) of " + values).that(meanByAddAllStats).isNaN();
          } else if (values.hasAnyPositiveInfinity() && values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of " + values).that(mean).isNaN();
            assertWithMessage("mean by addAll(Stats) of " + values).that(meanByAddAllStats).isNaN();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 36.5K bytes
    - Viewed (0)
Back to top