- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for checkEqual (0.73 sec)
-
src/testing/quick/quick.go
} } return nil } // CheckEqual looks for an input on which f and g return different results. // It calls f and g repeatedly with arbitrary values for each argument. // If f and g return different answers, CheckEqual returns a *[CheckEqualError] // describing the input and the outputs. func CheckEqual(f, g any, config *Config) error { if config == nil { config = &defaultConfig }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
src/go/printer/printer_test.go
// lineAt returns the line in text starting at offset offs. func lineAt(text []byte, offs int) []byte { i := offs for i < len(text) && text[i] != '\n' { i++ } return text[offs:i] } // checkEqual compares a and b. func checkEqual(aname, bname string, a, b []byte) error { if bytes.Equal(a, b) { return nil } return errors.New(string(diff.Diff(aname, a, bname, b))) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
src/sync/map_test.go
return applyCalls(new(DeepCopyMap), calls) } func TestMapMatchesRWMutex(t *testing.T) { if err := quick.CheckEqual(applyMap, applyRWMutexMap, nil); err != nil { t.Error(err) } } func TestMapMatchesDeepCopy(t *testing.T) { if err := quick.CheckEqual(applyMap, applyDeepCopyMap, nil); err != nil { t.Error(err) } } func TestConcurrentRange(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/aot/codegen.cc
TF_RETURN_IF_ERROR(GenArgShapeInfos(ps, &arg_shape_infos)); TF_RETURN_IF_ERROR( CheckEqual(ps.parameters_size(), arg_index_table.size(), "Arg number mismatch, proto vs. arg_index_table")); TF_RETURN_IF_ERROR(GenResultShapeInfos(ps, &result_shape_infos)); TF_RETURN_IF_ERROR( CheckEqual(ps.result().tuple_shapes_size(), result_index_table.size(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 01:20:01 UTC 2024 - 36.8K bytes - Viewed (0) -
src/image/draw/draw_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 26K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/metadata/AbstractRepositoryMetadataSource.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 8.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
}, "testing/quick": { {"(*CheckEqualError).Error", Method, 0}, {"(*CheckError).Error", Method, 0}, {"(SetupError).Error", Method, 0}, {"Check", Func, 0}, {"CheckEqual", Func, 0}, {"CheckEqualError", Type, 0}, {"CheckEqualError.CheckError", Field, 0}, {"CheckEqualError.Out1", Field, 0}, {"CheckEqualError.Out2", Field, 0}, {"CheckError", Type, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)