Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TestSub (0.18 sec)

  1. test/typeparam/mapsimp.dir/main.go

    	}
    	a.Add(mc, map[int]int{16: 32})
    	want := map[int]int{1: 2, 2: 4, 4: 8, 8: 16, 16: 32}
    	if !a.Equal(mc, want) {
    		panic(fmt.Sprintf("a.Add result = %v, want %v", mc, want))
    	}
    }
    
    func TestSub() {
    	mc := a.Copy(m1)
    	a.Sub(mc, mc)
    	if len(mc) > 0 {
    		panic(fmt.Sprintf("a.Sub(%v, %v) = %v, want empty map", m1, m1, mc))
    	}
    	mc = a.Copy(m1)
    	a.Sub(mc, map[int]int{1: 0})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. src/io/fs/sub_test.go

    package fs_test
    
    import (
    	"errors"
    	. "io/fs"
    	"testing"
    )
    
    type subOnly struct{ SubFS }
    
    func (subOnly) Open(name string) (File, error) { return nil, ErrNotExist }
    
    func TestSub(t *testing.T) {
    	check := func(desc string, sub FS, err error) {
    		t.Helper()
    		if err != nil {
    			t.Errorf("Sub(sub): %v", err)
    			return
    		}
    		data, err := ReadFile(sub, "goodbye.txt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 10 02:10:17 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. test/typeparam/maps.go

    	}
    	_Add(mc, map[int]int{16: 32})
    	want := map[int]int{1: 2, 2: 4, 4: 8, 8: 16, 16: 32}
    	if !_Equal(mc, want) {
    		panic(fmt.Sprintf("_Add result = %v, want %v", mc, want))
    	}
    }
    
    func TestSub() {
    	mc := _Copy(m1)
    	_Sub(mc, mc)
    	if len(mc) > 0 {
    		panic(fmt.Sprintf("_Sub(%v, %v) = %v, want empty map", m1, m1, mc))
    	}
    	mc = _Copy(m1)
    	_Sub(mc, map[int]int{1: 0})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/get-arithmetic-count.mlir

      %0 = "tfl.add"(%arg0, %arg1) {fused_activation_function = "NONE"} : (tensor<10x10x10xf32>, tensor<10xf32>) -> tensor<10x10x10xf32>
      func.return %0 : tensor<10x10x10xf32>
    }
    
    func.func @testSub(%arg0: tensor<10x10x10xf32>, %arg1: tensor<10x10x10xf32>) -> tensor<10x10x10xf32> {
      // CHECK: _arithmetic_count = 1000 : i64
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:58:17 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	q.MarshalJSON()
    }
    
    func TestDeepCopy(t *testing.T) {
    	q := NewQuantity(5, DecimalSI)
    	c := q.DeepCopy()
    	c.Set(6)
    	if q.Value() == 6 {
    		t.Errorf("Copy didn't")
    	}
    }
    
    func TestSub(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        Quantity
    		expected Quantity
    	}{
    		{decQuantity(10, 0, DecimalSI), decQuantity(1, 1, DecimalSI), decQuantity(0, 0, DecimalSI)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  6. src/time/time_test.go

    	{Date(2311, 11, 26, 02, 16, 47, 63535996, UTC), Date(2019, 8, 16, 2, 29, 30, 268436582, UTC), 9223372036795099414},
    	{MinMonoTime, MaxMonoTime, minDuration},
    	{MaxMonoTime, MinMonoTime, maxDuration},
    }
    
    func TestSub(t *testing.T) {
    	for i, st := range subTests {
    		got := st.t.Sub(st.u)
    		if got != st.d {
    			t.Errorf("#%d: Sub(%v, %v): got %v; want %v", i, st.t, st.u, got, st.d)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/ops.mlir

      %0 = tfl.add %arg0, %arg1 {fused_activation_function = "RELU6"} : tensor<? x i16>
      func.return %0#0 : tensor<? x i16>
    }
    
    // CHECK-LABEL: testSub
    func.func @testSub(tensor<? x i32>, tensor<? x i32>) -> tensor<? x i32> {
    ^bb0(%arg0: tensor<? x i32>, %arg1: tensor<? x i32>):
      // CHECK: tfl.sub %arg0, %arg1 {fused_activation_function = "RELU6"}
    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. operator/cmd/mesh/manifest-generate_test.go

    func TestLDFlags(t *testing.T) {
    	tmpHub, tmpTag := version.DockerInfo.Hub, version.DockerInfo.Tag
    	defer func() {
    		version.DockerInfo.Hub, version.DockerInfo.Tag = tmpHub, tmpTag
    	}()
    	version.DockerInfo.Hub = "testHub"
    	version.DockerInfo.Tag = "testTag"
    	l := clog.NewConsoleLogger(os.Stdout, os.Stderr, installerScope)
    	_, iop, err := manifest.GenerateConfig(nil, []string{"installPackagePath=" + string(liveCharts)}, true, nil, l)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 43.5K bytes
    - Viewed (0)
Back to top