Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testSET (0.13 sec)

  1. src/encoding/asn1/marshal_test.go

    	}
    }
    
    func TestSetEncoderSETSliceSuffix(t *testing.T) {
    	type testSetSET []string
    	testSet := testSetSET{"a", "aa", "b", "bb", "c", "cc"}
    
    	// Expected ordering of the SET should be:
    	// a, b, c, aa, bb, cc
    
    	output, err := Marshal(testSet)
    	if err != nil {
    		t.Errorf("%v", err)
    	}
    
    	expectedOrder := testSetSET{"a", "b", "c", "aa", "bb", "cc"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/ipset/ipset_test.go

    	}
    	// Success
    	err = runner.DestroyAllSets()
    	if err != nil {
    		t.Errorf("Unexpected failure: %v", err)
    	}
    }
    
    func TestCreateSet(t *testing.T) {
    	testSet := IPSet{
    		Name:       "FOOBAR",
    		SetType:    HashIPPort,
    		HashFamily: ProtocolFamilyIPV4,
    	}
    
    	fcmd := fakeexec.FakeCmd{
    		CombinedOutputScript: []fakeexec.FakeAction{
    			// Success
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(WildcardType.class.isInstance(GenericsUtil.getElementTypeOfList(t3)), is(true));
        }
    
        /**
         * @throws Exception
         */
        public void testSet() throws Exception {
            final Method m1 = SetType.class.getMethod("setOfString");
            final Type t1 = m1.getGenericReturnType();
            assertThat(GenericsUtil.isTypeOf(t1, Set.class), is(true));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertNotInstantiable(new TypeToken<ArrayList<EmptyEnum>>() {});
      }
    
      public void testLinkedList() {
        assertFreshInstance(new TypeToken<LinkedList<String>>() {});
      }
    
      public void testSet() {
        assertFreshInstance(new TypeToken<Set<String>>() {});
        assertNotInstantiable(new TypeToken<Set<EmptyEnum>>() {});
      }
    
      public void testHashSet() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertNotInstantiable(new TypeToken<ArrayList<EmptyEnum>>() {});
      }
    
      public void testLinkedList() {
        assertFreshInstance(new TypeToken<LinkedList<String>>() {});
      }
    
      public void testSet() {
        assertFreshInstance(new TypeToken<Set<String>>() {});
        assertNotInstantiable(new TypeToken<Set<EmptyEnum>>() {});
      }
    
      public void testHashSet() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  6. src/math/big/nat_test.go

    	},
    }
    
    func natFromString(s string) nat {
    	x, _, _, err := nat(nil).scan(strings.NewReader(s), 0, false)
    	if err != nil {
    		panic(err)
    	}
    	return x
    }
    
    func TestSet(t *testing.T) {
    	for _, a := range sumNN {
    		z := nat(nil).set(a.z)
    		if z.cmp(a.z) != 0 {
    			t.Errorf("got z = %v; want %v", z, a.z)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. src/syscall/js/js_test.go

    	}
    }
    
    func TestGet(t *testing.T) {
    	// positive cases get tested per type
    
    	expectValueError(t, func() {
    		dummys.Get("zero").Get("badField")
    	})
    }
    
    func TestSet(t *testing.T) {
    	// positive cases get tested per type
    
    	expectValueError(t, func() {
    		dummys.Get("zero").Set("badField", 42)
    	})
    }
    
    func TestDelete(t *testing.T) {
    	dummys.Set("test", 42)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  8. src/encoding/asn1/asn1_test.go

    type TestContextSpecificTags3 struct {
    	S string `asn1:"tag:1,utf8"`
    }
    
    type TestElementsAfterString struct {
    	S    string
    	A, B int
    }
    
    type TestBigInt struct {
    	X *big.Int
    }
    
    type TestSet struct {
    	Ints []int `asn1:"set"`
    }
    
    var unmarshalTestData = []struct {
    	in  []byte
    	out any
    }{
    	{[]byte{0x02, 0x01, 0x42}, newInt(0x42)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
Back to top