Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 460 for 00 (0.02 sec)

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

        }
      }
    
      public void testEnsureNonNegative() {
        assertThat(DoubleUtils.ensureNonNegative(0.0)).isEqualTo(0.0);
        for (double positiveValue : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          assertThat(DoubleUtils.ensureNonNegative(positiveValue)).isEqualTo(positiveValue);
          assertThat(DoubleUtils.ensureNonNegative(-positiveValue)).isEqualTo(0.0);
        }
        assertThat(DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)).isPositiveInfinity();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_linux_test.go

    	"strings"
    	"testing"
    )
    
    // Tests cross device mount verification function, for both failure
    // and success cases.
    func TestCrossDeviceMountPaths(t *testing.T) {
    	successCase := `/dev/0 /path/to/0/1 type0 flags 0 0
    		/dev/1    /path/to/1   type1	flags 1 1
    		/dev/2 /path/to/1/2 type2 flags,1,2=3 2 2
                    /dev/3 /path/to/1.1 type3 flags,1,2=3 3 3
    		`
    	var err error
    	dir := t.TempDir()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/PairedStatsTest.java

        }
        assertThat(HORIZONTAL_VALUES_PAIRED_STATS.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(0.0);
        assertThat(VERTICAL_VALUES_PAIRED_STATS.populationCovariance()).isWithin(ALLOWED_ERROR).of(0.0);
        assertThat(CONSTANT_VALUES_PAIRED_STATS.populationCovariance()).isWithin(ALLOWED_ERROR).of(0.0);
      }
    
      public void testSampleCovariance() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/expr_test.go

    type exprTest struct {
    	input  string
    	output int64
    	atEOF  bool
    }
    
    var exprTests = []exprTest{
    	// Simple
    	{"0", 0, true},
    	{"3", 3, true},
    	{"070", 8 * 7, true},
    	{"0x0f", 15, true},
    	{"0xFF", 255, true},
    	{"9223372036854775807", 9223372036854775807, true}, // max int64
    	// Unary
    	{"-0", 0, true},
    	{"~0", -1, true},
    	{"~0*0", 0, true},
    	{"+3", 3, true},
    	{"-3", -3, true},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/PairedStats.java

        if (xSumOfSquaresOfDeltas > 0.0) {
          if (yStats.sumOfSquaresOfDeltas() > 0.0) {
            return LinearTransformation.mapping(xStats.mean(), yStats.mean())
                .withSlope(sumOfProductsOfDeltas / xSumOfSquaresOfDeltas);
          } else {
            return LinearTransformation.horizontal(yStats.mean());
          }
        } else {
          checkState(yStats.sumOfSquaresOfDeltas() > 0.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetCountTester<E> extends AbstractMultisetTester<E> {
    
      public void testCount_0() {
        assertEquals("multiset.count(missing) didn't return 0", 0, getMultiset().count(e3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testCount_1() {
        assertEquals("multiset.count(present) didn't return 1", 1, getMultiset().count(e0()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. cmd/bucket-stats_gen_test.go

    func BenchmarkAppendMsgBucketReplicationStat(b *testing.B) {
    	v := BucketReplicationStat{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalBucketReplicationStat(b *testing.B) {
    	v := BucketReplicationStat{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 30 08:00:59 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

            asList(e3(), e2()),
            subList);
      }
    
      public void testSubList_ofSubListEmpty() {
        List<E> subList = getList().subList(0, 0).subList(0, 0);
        assertEquals("subList(0, 0).subList(0, 0) should be an empty list", emptyList(), subList);
      }
    
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_ofSubListNonEmpty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

            asList(e3(), e2()),
            subList);
      }
    
      public void testSubList_ofSubListEmpty() {
        List<E> subList = getList().subList(0, 0).subList(0, 0);
        assertEquals("subList(0, 0).subList(0, 0) should be an empty list", emptyList(), subList);
      }
    
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_ofSubListNonEmpty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v1_gen_test.go

    	}
    }
    
    func BenchmarkAppendMsgChecksumInfo(b *testing.B) {
    	v := ChecksumInfo{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalChecksumInfo(b *testing.B) {
    	v := ChecksumInfo{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 13.2K bytes
    - Viewed (0)
Back to top