Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for testSET (0.28 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. clause/set_test.go

    package clause_test
    
    import (
    	"fmt"
    	"sort"
    	"strings"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestSet(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    				clause.Update{},
    				clause.Set([]clause.Assignment{{clause.PrimaryColumn, 1}}),
    			},
    			"UPDATE `users` SET `users`.`id`=?",
    			[]interface{}{1},
    		},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. test/typeparam/setsimp.dir/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./a"
    	"fmt"
    	"sort"
    )
    
    func TestSet() {
    	s1 := a.Make[int]()
    	if got := s1.Len(); got != 0 {
    		panic(fmt.Sprintf("Len of empty set = %d, want 0", got))
    	}
    	s1.Add(1)
    	s1.Add(1)
    	s1.Add(1)
    	if got := s1.Len(); got != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CountTest.java

      }
    
      public void testGetAndSet() {
        Count holder = new Count(10);
        assertEquals(10, holder.getAndSet(20));
        assertEquals(20, holder.get());
      }
    
      public void testSet() {
        Count holder = new Count(10);
        holder.set(20);
        assertEquals(20, holder.get());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

    public class ListSetTester<E> extends AbstractListTester<E> {
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = ZERO)
      public void testSet() {
        doTestSet(e3());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_null() {
        doTestSet(null);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

            mojo2.setGoal("war:war");
            phase.setMojos(Arrays.asList(mojo1, mojo2));
            assertEquals("jar:jar,war:war", phase.toString());
        }
    
        @Test
        void testSet() {
            LifecyclePhase phase = new LifecyclePhase();
            assertNull(phase.getMojos());
    
            phase.set("");
            assertNotNull(phase.getMojos());
            assertEquals(0, phase.getMojos().size());
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/pubkeypin/pubkeypin_test.go

    	result, err := x509.ParseCertificate(pemBlock.Bytes)
    	if err != nil {
    		t.Fatalf("failed to parse test certificate: %v", err)
    		return nil
    	}
    	return result
    }
    
    func TestSet(t *testing.T) {
    	s := NewSet()
    	if !s.Empty() {
    		t.Error("expected a new set to be empty")
    		return
    	}
    	err := s.Allow("xyz")
    	if err == nil || !s.Empty() {
    		t.Error("expected allowing junk to fail")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 13 11:38:39 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  8. test/typeparam/sets.go

    }
    
    // Filter deletes any elements from s for which f returns false.
    func (s _Set[Elem]) Filter(f func(Elem) bool) {
    	for v := range s.m {
    		if !f(v) {
    			delete(s.m, v)
    		}
    	}
    }
    
    func TestSet() {
    	s1 := _Make[int]()
    	if got := s1.Len(); got != 0 {
    		panic(fmt.Sprintf("Len of empty set = %d, want 0", got))
    	}
    	s1.Add(1)
    	s1.Add(1)
    	s1.Add(1)
    	if got := s1.Len(); got != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

            assertThat(FieldUtil.getString(field), is(STRING_DATA));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = ClIllegalArgumentException.class)
        public void testSet() throws Exception {
            final Field field = getClass().getField("intField");
            FieldUtil.set(field, this, "abc");
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. pkg/util/smallset/smallset_test.go

    package smallset_test
    
    import (
    	"fmt"
    	"testing"
    
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/util/smallset"
    )
    
    func TestSet(t *testing.T) {
    	elements := []string{"d", "b", "a", "d"}
    	set := smallset.New(elements...)
    
    	assert.Equal(t, set.Len(), 3)
    	assert.Equal(t, set.List(), []string{"a", "b", "d"})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top