- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for testAtof (0.28 sec)
-
src/compress/bzip2/bzip2_test.go
} } if !v.fail && val != v.value { t.Errorf("test %d, mismatching value: ReadBits(%d) = %d, want %d", i, v.nbits, val, v.value) } } } func TestMTF(t *testing.T) { var vectors = []struct { idx int // Input index sym uint8 // Expected output symbol }{ {idx: 1, sym: 1}, // [1 0 2 3 4] {idx: 0, sym: 1}, // [1 0 2 3 4]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 6.3K bytes - Viewed (0) -
src/strconv/ftoa_test.go
{3.999969482421875, 'x', 3, "0x1.000p+02"}, {3.999969482421875, 'x', 2, "0x1.00p+02"}, {3.999969482421875, 'x', 1, "0x1.0p+02"}, {3.999969482421875, 'x', 0, "0x1p+02"}, } func TestFtoa(t *testing.T) { for i := 0; i < len(ftoatests); i++ { test := &ftoatests[i] s := FormatFloat(test.f, test.fmt, test.prec, 64) if s != test.s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 24 23:50:20 UTC 2022 - 9.3K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
stack = append(stack, p) } var buf strings.Builder for i := len(stack) - 1; i >= 0; i-- { p := stack[i] fmt.Fprint(&buf, p.path) if p.testOf != nil { fmt.Fprint(&buf, ".test") } if i > 0 { if stack[i-1].testOf == p { fmt.Fprint(&buf, " tested by\n\t") } else { fmt.Fprint(&buf, " imports\n\t") } } } return buf.String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
} public void testAbsent() { Optional<String> optionalName = Optional.absent(); assertFalse(optionalName.isPresent()); } public void testOf() { assertEquals("training", Optional.of("training").get()); } public void testOf_null() { try { Optional.of(null); fail(); } catch (NullPointerException expected) { } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 18:32:41 UTC 2024 - 11.2K bytes - Viewed (0) -
src/runtime/string_test.go
{"-9223372036854775807", -(1<<63 - 1), true}, {"9223372036854775808", 0, false}, {"-9223372036854775808", -1 << 63, true}, {"9223372036854775809", 0, false}, {"-9223372036854775809", 0, false}, } func TestAtoi(t *testing.T) { switch intSize { case 32: for i := range atoi32tests { test := &atoi32tests[i] out, ok := runtime.Atoi(test.in) if test.out != int32(out) || test.ok != ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 13 14:05:23 UTC 2022 - 13.3K bytes - Viewed (0) -
src/strconv/atoi_test.go
if test.out != out || !reflect.DeepEqual(test.err, err) { t.Errorf("ParseInt(%q, 10, 0) = %v, %v want %v, %v", test.in, out, err, test.out, test.err) } } } } func TestAtoi(t *testing.T) { switch IntSize { case 32: for i := range parseInt32Tests { test := &parseInt32Tests[i] out, err := Atoi(test.in) var testErr error if test.err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 05:09:21 UTC 2023 - 17.1K bytes - Viewed (0) -
src/unicode/letter_test.go
func caseString(c int) string { switch c { case UpperCase: return "UpperCase" case LowerCase: return "LowerCase" case TitleCase: return "TitleCase" } return "ErrorCase" } func TestTo(t *testing.T) { for _, c := range caseTest { r := To(c.cas, c.in) if c.out != r { t.Errorf("To(U+%04X, %s) = U+%04X want U+%04X", c.in, caseString(c.cas), r, c.out) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 09 01:46:03 UTC 2023 - 14.8K bytes - Viewed (0) -
src/fmt/scan_test.go
func (ec *eofCounter) Read(b []byte) (n int, err error) { n, err = ec.reader.Read(b) if n == 0 { ec.eofCount++ } return } // TestEOF verifies that when we scan, we see at most EOF once per call to a // Scan function, and then only when it's really an EOF. func TestEOF(t *testing.T) { ec := &eofCounter{strings.NewReader("123\n"), 0} var a int n, err := Fscanln(ec, &a) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 20:25:13 UTC 2023 - 39.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
e := C.enum_E(C.Enum1) if e != 1 { t.Error("bad enum", C.Enum1) } e = C.enum_E(C.Enum2) if e != 2 { t.Error("bad enum", C.Enum2) } } func testAtol(t *testing.T) { l := Atol("123") if l != 123 { t.Error("Atol 123: ", l) } } func testErrno(t *testing.T) { p := C.CString("no-such-file") m := C.CString("r")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
// We check pkg.mod.Path here instead of pkg.inStd because the // pseudo-package "C" is not in std, but not provided by any module (and // shouldn't force loading the whole module graph). if pkg.testOf != nil || (pkg.mod.Path == "" && pkg.err == nil) || module.CheckImportPath(pkg.path) != nil { continue } // We need the checksum for the go.mod file for pkg.mod
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0)