- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 116 for testvalues (0.27 sec)
-
test/fixedbugs/issue9604b.go
for _, t := range types { for _, n := range t.testvalues() { fmt.Printf("var %s_%s %s = %d\n", t.name, valname(n), t.name, n) } } fmt.Println("func main() {") for _, t := range types { // test binary ops for _, op := range binops { for _, x := range t.testvalues() { for _, y := range t.testvalues() { if (op.name == "/" || op.name == "%") && y.Sign() == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 4.8K bytes - Viewed (0) -
clause/values_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestValues(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{ clause.Insert{}, clause.Values{ Columns: []clause.Column{{Name: "name"}, {Name: "age"}}, Values: [][]interface{}{{"jinzhu", 18}, {"josh", 1}}, }, },
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 691 bytes - Viewed (0) -
test/typeparam/mapsimp.dir/main.go
} got2 := a.Keys(m2) sort.Ints(got2) if !a.SliceEqual(got2, want) { panic(fmt.Sprintf("a.Keys(%v) = %v, want %v", m2, got2, want)) } } func TestValues() { got1 := a.Values(m1) want1 := []int{2, 4, 8, 16} sort.Ints(got1) if !a.SliceEqual(got1, want1) { panic(fmt.Sprintf("a.Values(%v) = %v, want %v", m1, got1, want1)) } got2 := a.Values(m2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 3.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java
*/ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testValues() { List<V> expected = Lists.newArrayList(); for (Entry<K, V> entry : getSampleElements()) { expected.add(entry.getValue()); } assertEqualIgnoringOrder(expected, multimap().values()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 2.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java
*/ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testValues() { List<V> expected = Lists.newArrayList(); for (Entry<K, V> entry : getSampleElements()) { expected.add(entry.getValue()); } assertEqualIgnoringOrder(expected, multimap().values()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 2.5K bytes - Viewed (0) -
src/maps/iter_test.go
var got []int for k := range Keys(m) { got = append(got, k) } slices.Sort(got) if !slices.Equal(got, want) { t.Errorf("Keys(%v) = %v, want %v", m, got, want) } } } func TestValues(t *testing.T) { for size := 0; size < 10; size++ { var want []int m := make(map[int]int) for i := range size { m[i] = i want = append(want, i) } var got []int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:44:19 UTC 2024 - 1.9K bytes - Viewed (0) -
test/typeparam/maps.go
} got2 := _Keys(m2) sort.Ints(got2) if !_SliceEqual(got2, want) { panic(fmt.Sprintf("_Keys(%v) = %v, want %v", m2, got2, want)) } } func TestValues() { got1 := _Values(m1) want1 := []int{2, 4, 8, 16} sort.Ints(got1) if !_SliceEqual(got1, want1) { panic(fmt.Sprintf("_Values(%v) = %v, want %v", m1, got1, want1)) } got2 := _Values(m2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
src/internal/syscall/windows/registry/registry_test.go
if len(names) != 0 { t.Errorf("some values remain after deletion: %v", names) } } func TestValues(t *testing.T) { softwareK, err := registry.OpenKey(registry.CURRENT_USER, "Software", registry.QUERY_VALUE) if err != nil { t.Fatal(err) } defer softwareK.Close() testKName := randKeyName("TestValues_")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 19:19:00 UTC 2024 - 18.5K bytes - Viewed (0) -
src/slices/iter_test.go
t.Errorf("at iteration %d got %d, %d want %d, %d", cnt, i, v, ei, ev) } ei-- ev-- cnt++ } if cnt != size { t.Errorf("read %d values expected %d", cnt, size) } } } func TestValues(t *testing.T) { for size := 0; size < 10; size++ { var s []int for i := range size { s = append(s, i) } ev := 0 cnt := 0 for v := range Values(s) { if v != ev {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
testValues := []string{"100m", "1Gi"} zero := MustParse("0") for _, testValue := range testValues { value := MustParse(testValue) v1 := value.DeepCopy() // ensure non-zero - zero = non-zero (suffix preserved) v1.Sub(zero) // ensure we preserved the input value if v1.String() != testValue { t.Errorf("Expected %v, actual %v", testValue, v1.String()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0)