- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,257 for _Equal (0.42 sec)
-
test/typeparam/slices.go
if !_Equal(s3, s3) { panic(fmt.Sprintf("_Equal(%v, %v) = false, want true", s3, s3)) } if _Equal(s1, nil) { panic(fmt.Sprintf("_Equal(%v, nil) = true, want false", s1)) } if _Equal(nil, s1) { panic(fmt.Sprintf("_Equal(nil, %v) = true, want false", s1)) } if !_Equal(s1[:0], nil) { panic(fmt.Sprintf("_Equal(%v, nil = false, want true", s1[:0])) } } func offByOne[Elem Integer](a, b Elem) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
test/typeparam/maps.go
} } func TestEqual() { if !_Equal(m1, m1) { panic(fmt.Sprintf("_Equal(%v, %v) = false, want true", m1, m1)) } if _Equal(m1, nil) { panic(fmt.Sprintf("_Equal(%v, nil) = true, want false", m1)) } if _Equal(nil, m1) { panic(fmt.Sprintf("_Equal(nil, %v) = true, want false", m1)) } if !_Equal[int, int](nil, nil) { panic("_Equal(nil, nil) = false, want true") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
test/typeparam/sets.go
} func TestEqual() { s1 := _Make[string]() s2 := _Make[string]() if !_Equal(s1, s2) { panic(fmt.Sprintf("_Equal(%v, %v) = false, want true", s1, s2)) } s1.Add("hello") s1.Add("world") if got := s1.Len(); got != 2 { panic(fmt.Sprintf("(%v).Len() == %d, want 2", s1, got)) } if _Equal(s1, s2) { panic(fmt.Sprintf("_Equal(%v, %v) = true, want false", s1, s2)) } } func TestCopy() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.7K bytes - Viewed (0) -
test/typeparam/metrics.go
} } func main() { TestMetrics() } // _Equal reports whether two slices are equal: the same length and all // elements equal. All floating point NaNs are considered equal. func _SlicesEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 4.4K bytes - Viewed (0) -
test/typeparam/orderedmap.go
if !_SliceEqual(got, want) { panic(fmt.Sprintf("Iterate returned %v, want %v", got, want)) } } func main() { TestMap() } // _Equal reports whether two slices are equal: the same length and all // elements equal. All floating point NaNs are considered equal. func _SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.1K bytes - Viewed (0) -
test/typeparam/chans.go
package main import ( "context" "fmt" "runtime" "sort" "sync" "time" ) // _Equal reports whether two slices are equal: the same length and all // elements equal. All floating point NaNs are considered equal. func _SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 8.4K bytes - Viewed (0) -
test/typeparam/equal.go
Matthew Dempsky <******@****.***> 1646087539 -0800
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/MapDifference.java
/** Returns the value from the right map (possibly null). */ @ParametricNullness V rightValue(); /** * Two instances are considered equal if their {@link #leftValue()} values are equal and their * {@link #rightValue()} values are also equal. */ @Override boolean equals(@CheckForNull Object other); /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Aug 04 13:28:27 UTC 2021 - 3.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Objects.java
private Objects() {} /** * Determines whether two possibly-null objects are equal. Returns: * * <ul> * <li>{@code true} if {@code a} and {@code b} are both null. * <li>{@code true} if {@code a} and {@code b} are both non-null and they are equal according to * {@link Object#equals(Object)}. * <li>{@code false} in all other situations. * </ul> *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 2.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MapDifference.java
/** Returns the value from the right map (possibly null). */ @ParametricNullness V rightValue(); /** * Two instances are considered equal if their {@link #leftValue()} values are equal and their * {@link #rightValue()} values are also equal. */ @Override boolean equals(@CheckForNull Object other); /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Aug 04 13:28:27 UTC 2021 - 3.5K bytes - Viewed (0)