Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for TestAdd (0.16 sec)

  1. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            assertThat(list.getLast(), is("1"));
            list.getLastEntry().remove();
            assertThat(list.size(), is(0));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAdd() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            list.add(1, "4");
            assertThat(list.get(1), is("4"));
            assertThat(list.get(2), is("2"));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/syscall/js/js_test.go

    	NegInfinity: -Infinity,
    	objNumber0: new Number(0),
    	objBooleanFalse: new Boolean(false),
    })`)
    
    //go:wasmimport _gotest add
    func testAdd(uint32, uint32) uint32
    
    func TestWasmImport(t *testing.T) {
    	a := uint32(3)
    	b := uint32(5)
    	want := a + b
    	if got := testAdd(a, b); got != want {
    		t.Errorf("got %v, want %v", got, want)
    	}
    }
    
    func TestBool(t *testing.T) {
    	want := true
    	o := dummys.Get("someBool")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

                    package application;
    
                    import org.junit.Assert;
                    import org.junit.Test;
    
                    public class AdderTest {
                        @Test
                        public void testAdd() {
                            Adder adder = new Adder();
                            Assert.assertEquals(2, adder.add(1, 1));
                            Assert.assertEquals(4, adder.add(2, 2));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/quota/v1/resources_test.go

    		sum := Max(testCase.a, testCase.b)
    		if result := Equals(testCase.expected, sum); !result {
    			t.Errorf("%s expected: %v, actual: %v", testName, testCase.expected, sum)
    		}
    	}
    }
    
    func TestAdd(t *testing.T) {
    	testCases := map[string]struct {
    		a        corev1.ResourceList
    		b        corev1.ResourceList
    		expected corev1.ResourceList
    	}{
    		"noKeys": {
    			a:        corev1.ResourceList{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 01:57:38 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/topologymanager/bitmask/bitmask_test.go

    		},
    	}
    	for _, tc := range tcases {
    		mask, _ := NewBitMask(tc.bits...)
    		if mask.String() != tc.expectedMask {
    			t.Errorf("Expected mask to be %v, got %v", tc.expectedMask, mask)
    		}
    	}
    }
    
    func TestAdd(t *testing.T) {
    	tcases := []struct {
    		name         string
    		bits         []int
    		expectedMask string
    	}{
    		{
    			name:         "Add BitMask with bit 0 set",
    			bits:         []int{0},
    			expectedMask: "01",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir

      // CHECK-DAG: tf.Const{{.*}} dense<0.242886767> : tensor<1x1x6x2xf32>
      func.return %0, %21 : tensor<4xf32>, tensor<1x1x6x2xf32>
    }
    
    // CHECK-LABEL: func @testAdd() -> tensor<2x2xi32>
    func.func @testAdd() -> tensor<2x2xi32> {
    ^bb0:
      %0 = arith.constant dense<[[0, 1], [2, 3]]> : tensor<2x2xi32>
      %1 = arith.constant dense<1> : tensor<2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 23:22:24 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  7. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoAggregationIntegrationTest.groovy

                    package application;
    
                    import org.junit.Assert;
                    import org.junit.Test;
    
                    public class AdderTest {
                        @Test
                        public void testAdd() {
                            Adder adder = new Adder();
                            Assert.assertEquals(2, adder.add(1, 1));
                            Assert.assertEquals(4, adder.add(2, 2));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 26.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    	req, err := NewRequirement(key, op, vals.List())
    	if err != nil {
    		t.Errorf("NewRequirement(%v, %v, %v) resulted in error:%v", key, op, vals, err)
    		return Requirement{}
    	}
    	return *req
    }
    
    func TestAdd(t *testing.T) {
    	testCases := []struct {
    		name        string
    		sel         Selector
    		key         string
    		operator    selection.Operator
    		values      []string
    		refSelector Selector
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		a := test.a.DeepCopy()
    		a.Neg()
    		// ensure value is same
    		if a.Cmp(test.expected) != 0 {
    			t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), a.String())
    		}
    	}
    }
    
    func TestAdd(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        Quantity
    		expected Quantity
    	}{
    		{decQuantity(10, 0, DecimalSI), decQuantity(1, 1, DecimalSI), decQuantity(20, 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)
  10. tensorflow/compiler/mlir/lite/tests/ops.mlir

      %0 = "tfl.logical_not"(%arg0) : (tensor<? x i32>) -> tensor<? x i32>
      func.return %0 : tensor<? x i32>
    }
    
    // Binary math ops
    // -----
    
    // CHECK-LABEL: testAdd
    func.func @testAdd(tensor<? x i32>, tensor<? x i32>) -> tensor<? x i32> {
    ^bb0(%arg0: tensor<? x i32>, %arg1: tensor<? x i32>):
      // TODO(jpienaar): Enable specifying label of enum for parsing.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
Back to top