Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 69 of 69 for testProg (0.19 sec)

  1. guava-tests/test/com/google/common/collect/OrderingTest.java

          fail();
        } catch (NullPointerException expected) {
        }
        assertSame(comparator, reserialize(comparator));
        assertEquals("Ordering.natural()", comparator.toString());
      }
    
      public void testFrom() {
        Ordering<String> caseInsensitiveOrdering = Ordering.from(String.CASE_INSENSITIVE_ORDER);
        assertEquals(0, caseInsensitiveOrdering.compare("A", "a"));
        assertTrue(caseInsensitiveOrdering.compare("a", "B") < 0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  2. src/slices/slices_test.go

    		for i := range ss {
    			ss[i] = i
    		}
    		b.ResetTimer()
    		for i := 0; i < b.N; i++ {
    			_ = CompactFunc(ss, func(a, b Element) bool { return a == b })
    		}
    	})
    }
    
    func TestGrow(t *testing.T) {
    	s1 := []int{1, 2, 3}
    
    	copy := Clone(s1)
    	s2 := Grow(copy, 1000)
    	if !Equal(s1, s2) {
    		t.Errorf("Grow(%v) = %v, want %v", s1, s2, s1)
    	}
    	if cap(s2) < 1000+len(s1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final Closeable mockCloseable = Mockito.mock(Closeable.class);
    
      @Override
      protected void tearDown() throws Exception {
        assertNoExpectedFailures();
        super.tearDown();
      }
    
      public void testFrom() throws Exception {
        ClosingFuture<String> closingFuture =
            ClosingFuture.from(executor.submit(Callables.returning(closeable1)))
                .transform(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final Closeable mockCloseable = Mockito.mock(Closeable.class);
    
      @Override
      protected void tearDown() throws Exception {
        assertNoExpectedFailures();
        super.tearDown();
      }
    
      public void testFrom() throws Exception {
        ClosingFuture<String> closingFuture =
            ClosingFuture.from(executor.submit(Callables.returning(closeable1)))
                .transform(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  5. src/math/cmplx/cmath_test.go

    func TestIsNaN(t *testing.T) {
    	for i := 0; i < len(vcIsNaNSC); i++ {
    		if f := IsNaN(vcIsNaNSC[i]); isNaNSC[i] != f {
    			t.Errorf("IsNaN(%v) = %v, want %v", vcIsNaNSC[i], f, isNaNSC[i])
    		}
    	}
    }
    func TestLog(t *testing.T) {
    	for i := 0; i < len(vc); i++ {
    		if f := Log(vc[i]); !cVeryclose(log[i], f) {
    			t.Errorf("Log(%g) = %g, want %g", vc[i], f, log[i])
    		}
    	}
    	for _, v := range logSC {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  6. src/cmd/link/link_test.go

    	}
    }
    
    func TestReadOnly(t *testing.T) {
    	// Test that read-only data is indeed read-only.
    	testenv.MustHaveGoBuild(t)
    
    	t.Parallel()
    
    	src := filepath.Join("testdata", "testRO", "x.go")
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "run", src)
    	out, err := cmd.CombinedOutput()
    	if err == nil {
    		t.Errorf("running test program did not fail. output:\n%s", out)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/ops.mlir

      %0 = "tfl.add_n"(%arg0, %arg1, %arg2): (tensor<? x f16>, tensor<? x f16>, tensor<? x f16>) -> tensor<? x f16>
      func.return %0 : tensor<? x f16>
    }
    
    // -----
    
    // CHECK-LABEL: testLog
    func.func @testLog(tensor<? x f32>) -> tensor<? x f32> {
    ^bb0(%arg0: tensor<? x f32>):
      // CHECK: "tfl.log"(%arg0)
      %0 = "tfl.log"(%arg0): (tensor<? x f32>) -> tensor<? x f32>
      func.return %0 : tensor<? x f32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  8. src/math/all_test.go

    		if f, s := Lgamma(vflgammaSC[i]); !alike(lgammaSC[i].f, f) || lgammaSC[i].i != s {
    			t.Errorf("Lgamma(%g) = %g, %d, want %g, %d", vflgammaSC[i], f, s, lgammaSC[i].f, lgammaSC[i].i)
    		}
    	}
    }
    
    func TestLog(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		a := Abs(vf[i])
    		if f := Log(a); log[i] != f {
    			t.Errorf("Log(%g) = %g, want %g", a, f, log[i])
    		}
    	}
    	if f := Log(10); f != Ln10 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  9. src/reflect/all_test.go

    	var x any = func() {}
    	v := ValueOf(x)
    	if fmt.Sprint(v.Interface()) != fmt.Sprint(x) {
    		t.Fatalf("TestFunction returned wrong pointer")
    	}
    	assert(t, v.Type().String(), "func()")
    }
    
    func TestGrow(t *testing.T) {
    	v := ValueOf([]int(nil))
    	shouldPanic("reflect.Value.Grow using unaddressable value", func() { v.Grow(0) })
    	v = ValueOf(new([]int)).Elem()
    	v.Grow(0)
    	if !v.IsNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top