Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 60 for testProg (0.17 sec)

  1. src/bytes/buffer_test.go

    	data[n-1] = 'x'
    	b.SetBytes(int64(n))
    	for i := 0; i < b.N; i++ {
    		buf := NewBuffer(data)
    		_, err := buf.ReadString('x')
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func TestGrow(t *testing.T) {
    	x := []byte{'x'}
    	y := []byte{'y'}
    	tmp := make([]byte, 72)
    	for _, growLen := range []int{0, 100, 1000, 10000, 100000} {
    		for _, startLen := range []int{0, 100, 1000, 10000, 100000} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftApplicationIntegrationTest.groovy

                }
            """
            file("hello/build.gradle") << """
                apply plugin: 'swift-library'
                group = 'test'
                dependencies {
                    api 'test:log:1.4'
                }
            """
            file("log/build.gradle") << """
                apply plugin: 'swift-library'
                group = 'test'
            """
    
            app.library.writeToProject(file("hello"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:43:37 UTC 2024
    - 40.2K bytes
    - Viewed (1)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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