Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for testMean (0.09 sec)

  1. guava-tests/test/com/google/common/math/IntMathTest.java

          assertThrows(IllegalArgumentException.class, () -> IntMath.binomial(n, 0));
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // java.math.BigInteger
      public void testMean() {
        // Odd-sized ranges have an obvious mean
        assertMean(2, 1, 3);
    
        assertMean(-2, -3, -1);
        assertMean(0, -1, 1);
        assertMean(1, -1, 3);
        assertMean((1 << 30) - 1, -1, Integer.MAX_VALUE);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(LONG_MANY_VALUES_STATS_ITERATOR.count()).isEqualTo(LONG_MANY_VALUES_COUNT);
        assertThat(LONG_MANY_VALUES_STATS_SNAPSHOT.count()).isEqualTo(LONG_MANY_VALUES_COUNT);
      }
    
      public void testMean() {
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_VARARGS.mean());
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_ITERABLE.mean());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
      public void testMean() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.mean());
        assertThrows(IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.mean());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/IntMathTest.java

          assertThrows(IllegalArgumentException.class, () -> IntMath.binomial(n, 0));
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // java.math.BigInteger
      public void testMean() {
        // Odd-sized ranges have an obvious mean
        assertMean(2, 1, 3);
    
        assertMean(-2, -3, -1);
        assertMean(0, -1, 1);
        assertMean(1, -1, 3);
        assertMean((1 << 30) - 1, -1, Integer.MAX_VALUE);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
      public void testMean() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.mean());
        assertThrows(IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.mean());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/LongMathTest.java

        long sqrtMaxLong = (long) Math.sqrt(Long.MAX_VALUE);
        assertTrue(sqrtMaxLong <= LongMath.FLOOR_SQRT_MAX_LONG);
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // java.math.BigInteger
      public void testMean() {
        // Odd-sized ranges have an obvious mean
        assertMean(2, 1, 3);
    
        assertMean(-2, -3, -1);
        assertMean(0, -1, 1);
        assertMean(1, -1, 3);
        assertMean((1L << 62) - 1, -1, Long.MAX_VALUE);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. src/archive/tar/reader_test.go

    			testRemaining{5, 5},
    			testRead{5, "hello", io.EOF},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{"hello, world", 50},
    		tests: []testFnc{
    			testRemaining{50, 50},
    			testRead{7, "hello, ", nil},
    			testRemaining{43, 43},
    			testRead{5, "world", nil},
    			testRemaining{38, 38},
    			testWriteTo{nil, 0, io.ErrUnexpectedEOF},
    			testRead{1, "", io.ErrUnexpectedEOF},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/testing-websockets.md

    # WebSockets testen
    
    Sie können den schon bekannten `TestClient` zum Testen von WebSockets verwenden.
    
    Dazu verwenden Sie den `TestClient` in einer `with`-Anweisung, eine Verbindung zum WebSocket herstellend:
    
    ```Python hl_lines="27-31"
    {!../../docs_src/app_testing/tutorial002.py!}
    ```
    
    /// note | "Hinweis"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 523 bytes
    - Viewed (0)
  9. docs/de/docs/advanced/testing-dependencies.md

    # Testen mit Ersatz für Abhängigkeiten
    
    ## Abhängigkeiten beim Testen überschreiben
    
    Es gibt einige Szenarien, in denen Sie beim Testen möglicherweise eine Abhängigkeit überschreiben möchten.
    
    Sie möchten nicht, dass die ursprüngliche Abhängigkeit ausgeführt wird (und auch keine der möglicherweise vorhandenen Unterabhängigkeiten).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. docs/de/docs/how-to/custom-docs-ui-assets.md

    ///
    
    ### Eine *Pfadoperation* erstellen, um statische Dateien zu testen
    
    Um nun testen zu können, ob alles funktioniert, erstellen Sie eine *Pfadoperation*:
    
    ```Python hl_lines="39-41"
    {!../../docs_src/custom_docs_ui/tutorial002.py!}
    ```
    
    ### Benutzeroberfläche, mit statischen Dateien, testen
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top