Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 994 for EQUAL (1.6 sec)

  1. pkg/typemap/map_test.go

    	typemap.Set[TestInterface[string]](tm, TestStruct{Field: "interface"})
    
    	assert.Equal(t, typemap.Get[int](tm), ptr.Of(1))
    	assert.Equal(t, typemap.Get[int32](tm), ptr.Of(int32(2)))
    	assert.Equal(t, typemap.Get[string](tm), ptr.Of("string"))
    	assert.Equal(t, typemap.Get[*TestStruct](tm), ptr.Of(&TestStruct{Field: "pointer"}))
    	assert.Equal(t, typemap.Get[TestInterface[string]](tm), ptr.Of(TestInterface[string](TestStruct{Field: "interface"})))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. pkg/util/sets/set_test.go

    			}
    		})
    	}
    }
    
    func TestInsertContains(t *testing.T) {
    	s := New[string]()
    	assert.Equal(t, s.InsertContains("k1"), false)
    	assert.Equal(t, s.InsertContains("k1"), true)
    	assert.Equal(t, s.InsertContains("k2"), false)
    	assert.Equal(t, s.InsertContains("k2"), true)
    }
    
    func BenchmarkSet(b *testing.B) {
    	containsTest := New[string]()
    	for i := 0; i < 1000; i++ {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/healthServer_test.go

    	installReady.Store(true)
    	watchReady.Store(true)
    	assert.Equal(t, installReady.Load(), true)
    	assert.Equal(t, watchReady.Load(), true)
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusOK)
    
    	watchReady.Store(false)
    	assert.Equal(t, watchReady.Load(), false)
    	assert.Equal(t, installReady.Load(), true)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. istioctl/pkg/util/formatting/formatter_test.go

      origin: GrandCastle
    `
    
    	g.Expect(output).To(Equal(expectedOutput))
    }
    
    func TestFormatter_PrintEmpty(t *testing.T) {
    	g := NewWithT(t)
    
    	msgs := diag.Messages{}
    
    	logOutput, _ := Print(msgs, LogFormat, false)
    	g.Expect(logOutput).To(Equal(""))
    
    	jsonOutput, _ := Print(msgs, JSONFormat, false)
    	g.Expect(jsonOutput).To(Equal("[]"))
    
    	yamlOutput, _ := Print(msgs, YAMLFormat, false)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/AbstractLibrary.java

            return Objects.equal(isExported(), that.isExported())
                && Objects.equal(getAccessRules(), that.getAccessRules())
                && Objects.equal(getJavadocPath(), that.getJavadocPath())
                && Objects.equal(getNativeLibraryLocation(), that.getNativeLibraryLocation())
                && Objects.equal(getPath(), that.getPath())
                && Objects.equal(getSourcePath(), that.getSourcePath());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. pkg/ledger/ledger_test.go

    	_, err = l.Put(longKey+"2", "2")
    	assert.NoError(t, err)
    	res, err := l.Get(longKey + "1")
    	assert.NoError(t, err)
    	assert.Equal(t, res, "1")
    	res, err = l.Get(longKey + "2")
    	assert.NoError(t, err)
    	assert.Equal(t, res, "2")
    	res, err = l.Get(longKey)
    	assert.NoError(t, err)
    	assert.Equal(t, res, "")
    }
    
    func TestGetAndPrevious(t *testing.T) {
    	l := smtLedger{tree: newSMT(hasher, nil, time.Minute)}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 12 16:12:59 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. src/math/big/alias_test.go

    		// Check that receiver and arguments were unchanged and move on.
    		return equal(x, x1) && equal(y, y1) && equal(v, v1)
    	} else if out != v {
    		return false
    	}
    
    	// Test aliasing the first argument and the receiver.
    	v1.Set(x)
    	if out := f(v1, v1, y); out != v1 || !equal(v1, v) {
    		t.Logf("f(v, x, y) != f(x, x, y)")
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  8. src/go/types/typeterm_test.go

    	} {
    		args := split(test, 3)
    		x := testTerm(args[0])
    		y := testTerm(args[1])
    		want := args[2] == "T"
    		if got := x.equal(y); got != want {
    			t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want)
    		}
    		// equal is symmetric
    		x, y = y, x
    		if got := x.equal(y); got != want {
    			t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want)
    		}
    	}
    }
    
    func TestTermUnion(t *testing.T) {
    	for _, test := range []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/crypto/internal/hpke/hpke_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			expectedEncap := mustDecodeHex(t, setup["enc"])
    			if !bytes.Equal(encap, expectedEncap) {
    				t.Errorf("unexpected encapsulated key, got: %x, want %x", encap, expectedEncap)
    			}
    			expectedSharedSecret := mustDecodeHex(t, setup["shared_secret"])
    			if !bytes.Equal(context.sharedSecret, expectedSharedSecret) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelCheckerTest.groovy

        def "passes with equal values"() {
            when:
            ToolingApiModelChecker.checkModel(
                dummyModel("someValue"),
                dummyModel("some" + "Value"),
                [
                    { it.value }
                ]
            )
    
            then:
            noExceptionThrown()
        }
    
        def "passes with equal values from different model implementations"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top