- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for testAtof (0.38 sec)
-
src/strconv/atof_test.go
t.Errorf("ParseFloat(%v, 32) = %v, %v want %v, %v # %v", test.in, out32, err, test.out, test.err, out) } } SetOptimize(oldopt) } func TestAtof(t *testing.T) { testAtof(t, true) } func TestAtofSlow(t *testing.T) { testAtof(t, false) } func TestAtofRandom(t *testing.T) { initAtof() for _, test := range atofRandomTests { x, _ := ParseFloat(test.s, 64) switch { default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 16:24:57 UTC 2022 - 23.6K bytes - Viewed (0) -
src/internal/itoa/itoa_test.go
package itoa_test import ( "fmt" "internal/itoa" "math" "testing" ) var ( minInt64 int64 = math.MinInt64 maxInt64 int64 = math.MaxInt64 maxUint64 uint64 = math.MaxUint64 ) func TestItoa(t *testing.T) { tests := []int{int(minInt64), math.MinInt32, -999, -100, -1, 0, 1, 100, 999, math.MaxInt32, int(maxInt64)} for _, tt := range tests { got := itoa.Itoa(tt) want := fmt.Sprint(tt) if want != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 02:53:50 UTC 2023 - 1.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/text/TokenizerTest.java
import static org.junit.Assert.assertThat; import org.junit.Test; /** * @author higa * */ public class TokenizerTest { /** * @throws Exception */ @Test public void testEOF() throws Exception { final Tokenizer tokenizer = new Tokenizer(""); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF)); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF)); } /**
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2K bytes - Viewed (0) -
src/cmd/cgo/internal/test/cgo_test.go
func Test45451(t *testing.T) { test45451(t) } func Test49633(t *testing.T) { test49633(t) } func TestAlign(t *testing.T) { testAlign(t) } func TestAtol(t *testing.T) { testAtol(t) } func TestBlocking(t *testing.T) { testBlocking(t) } func TestBoolAlign(t *testing.T) { testBoolAlign(t) } func TestCallGoWithString(t *testing.T) { testCallGoWithString(t) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 6.4K bytes - Viewed (0) -
src/net/parse_test.go
t.Fatalf("%s:%d (#%d)\nbufio => %q, %v\nnet => %q, %v", filename, lineno, byteno, bline, berr, line, ok) } if !ok { break } lineno++ byteno += len(line) + 1 } } func TestDtoi(t *testing.T) { for _, tt := range []struct { in string out int off int ok bool }{ {"", 0, 0, false}, {"0", 0, 1, true}, {"65536", 65536, 5, true}, {"123456789", big, 8, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 00:04:48 UTC 2024 - 1.6K bytes - Viewed (0) -
pkg/ptr/pointer_test.go
} } func TestEmpty(t *testing.T) { type ts struct{} assertEqual(t, Empty[string](), "") assertEqual(t, Empty[int](), 0) assertEqual(t, Empty[ts](), ts{}) assertEqual(t, Empty[*ts](), nil) } func TestOf(t *testing.T) { one := 1 assertEqual(t, Of(1), &one) } func TestOrDefault(t *testing.T) { one := 1 assertEqual(t, OrDefault(nil, 2), 2) assertEqual(t, OrDefault(&one, 2), 1) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 08 23:31:08 UTC 2023 - 1.6K bytes - Viewed (0) -
src/strconv/itoa_test.go
{16, 17, "g"}, {25, 25, "10"}, {(((((17*35+24)*35+21)*35+34)*35+12)*35+24)*35 + 32, 35, "holycow"}, {(((((17*36+24)*36+21)*36+34)*36+12)*36+24)*36 + 32, 36, "holycow"}, } func TestItoa(t *testing.T) { for _, test := range itob64tests { s := FormatInt(test.in, test.base) if s != test.out { t.Errorf("FormatInt(%v, %v) = %v want %v", test.in, test.base, s, test.out) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 15 21:09:39 UTC 2022 - 5.8K bytes - Viewed (0) -
src/os/signal/signal_plan9_test.go
// into subsequent TestSignal() causing failure. // Sleep for a while to reduce the possibility of the failure. time.Sleep(10 * time.Millisecond) } // Test that Stop cancels the channel's registrations. func TestStop(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode") } sigs := []string{ "alarm", "hangup", } for _, sig := range sigs { // Send the signal.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Mar 14 17:56:50 UTC 2021 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/StopwatchTest.java
stopwatch.start(); try { stopwatch.start(); fail(); } catch (IllegalStateException expected) { } assertTrue(stopwatch.isRunning()); } public void testStop() { stopwatch.start(); assertSame(stopwatch, stopwatch.stop()); assertFalse(stopwatch.isRunning()); } public void testStop_new() { try { stopwatch.stop(); fail();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 5.8K bytes - Viewed (0) -
src/os/signal/signal_test.go
} } } var ( sendUncaughtSighup = flag.Int("send_uncaught_sighup", 0, "send uncaught SIGHUP during TestStop") dieFromSighup = flag.Bool("die_from_sighup", false, "wait to die from uncaught SIGHUP") ) // Test that Stop cancels the channel's registrations. func TestStop(t *testing.T) { sigs := []syscall.Signal{ syscall.SIGWINCH, syscall.SIGHUP, syscall.SIGUSR1, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0)