Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 262 for correctly (0.3 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assertThat(network.outEdges(N1)).containsExactly(E12);
        // Edge direction handled correctly
        assertThat(network.outEdges(N2)).isEmpty();
      }
    
      @Test
      public void predecessors_oneEdge() {
        addEdge(N1, N2, E12);
        assertThat(network.predecessors(N2)).containsExactly(N1);
        // Edge direction handled correctly
        assertThat(network.predecessors(N1)).isEmpty();
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Simple base class to verify that we handle generics correctly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class BaseComparable implements Comparable<BaseComparable>, Serializable {
      private final String s;
    
      public BaseComparable(String s) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 20 11:19:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/Base.java

    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Simple base class to verify that we handle generics correctly. */
    @GwtCompatible
    class Base implements Comparable<Base>, Serializable {
      private final String s;
    
      public Base(String s) {
        this.s = s;
      }
    
      @Override
      public int hashCode() { // delegate to 's'
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        // Edge direction handled correctly
        assertThat(graph.inDegree(N1)).isEqualTo(0);
      }
    
      @Test
      public void outDegree_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.outDegree(N1)).isEqualTo(1);
        // Edge direction handled correctly
        assertThat(graph.outDegree(N2)).isEqualTo(0);
      }
    
      @Test
      public void hasEdgeConnecting_correct() {
        putEdge(N1, N2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        } finally {
          executor.shutdownNow();
        }
    
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
      }
    
      /** Tests that the {@link Future#get(long, TimeUnit)} method times out correctly. */
      public void testTimeoutOnGetWorksCorrectly() throws InterruptedException, ExecutionException {
    
        // The task thread waits for the latch, so we expect a timeout here.
        try {
          future.get(20, MILLISECONDS);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 18:30:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        // Edge direction handled correctly
        assertThat(graph.inDegree(N1)).isEqualTo(0);
      }
    
      @Test
      public void outDegree_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.outDegree(N1)).isEqualTo(1);
        // Edge direction handled correctly
        assertThat(graph.outDegree(N2)).isEqualTo(0);
      }
    
      @Test
      public void hasEdgeConnecting_correct() {
        putEdge(N1, N2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInteger.java

       * primitive conversion from {@code int} to {@code float}, and correctly rounded.
       */
      @Override
      public float floatValue() {
        return longValue();
      }
    
      /**
       * Returns the value of this {@code UnsignedInteger} as a {@code float}, analogous to a widening
       * primitive conversion from {@code int} to {@code double}, and correctly rounded.
       */
      @Override
      public double doubleValue() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 18:45:50 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

    import junit.framework.TestCase;
    
    /**
     * Since annotations have some reusability issues that force copy and paste all over the place, it's
     * worth having a test to ensure that all our Feature enums have their annotations correctly set up.
     *
     * @author George van den Driessche
     */
    public class FeatureEnumTest extends TestCase {
      private static void assertGoodTesterAnnotation(Class<? extends Annotation> annotationClass) {
        assertNotNull(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      /*
       * This is somewhat of a weak test; we verify that all of the methods are
       * correct, but not that they're actually forwarding correctly. We also rely
       * on the other tests (e.g., SynchronizedSetTest) to verify that the
       * collection views are synchronized correctly.
       */
    
      public void testSize() {
        int unused = create().size();
      }
    
      public void testIsEmpty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/DerivedComparable.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Simple derived class to verify that we handle generics correctly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class DerivedComparable extends BaseComparable {
      public DerivedComparable(String s) {
        super(s);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 989 bytes
    - Viewed (0)
Back to top