Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for 123_ (0.15 sec)

  1. src/bytes/bytes_test.go

    	{faces, "☹", -1, []string{"☺☻☹", ""}},
    	{faces, "~", -1, []string{faces}},
    	{faces, "", -1, []string{"☺", "☻", "☹"}},
    	{"1 2 3 4", " ", 3, []string{"1 ", "2 ", "3 4"}},
    	{"1 2 3", " ", 3, []string{"1 ", "2 ", "3"}},
    	{"1 2", " ", 3, []string{"1 ", "2"}},
    	{"123", "", 2, []string{"1", "23"}},
    	{"123", "", 17, []string{"1", "2", "3"}},
    }
    
    func TestSplitAfter(t *testing.T) {
    	for _, tt := range splitaftertests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/bufio/example_test.go

    	w := bufio.NewWriter(os.Stdout)
    	for _, i := range []int64{1, 2, 3, 4} {
    		b := w.AvailableBuffer()
    		b = strconv.AppendInt(b, i, 10)
    		b = append(b, ' ')
    		w.Write(b)
    	}
    	w.Flush()
    	// Output: 1 2 3 4
    }
    
    // The simplest use of a Scanner, to read standard input as a set of lines.
    func ExampleScanner_lines() {
    	scanner := bufio.NewScanner(os.Stdin)
    	for scanner.Scan() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/addr2line/addr2line_test.go

    		t.Fatalf("addr2line_test.go and %s are not same file", srcPath)
    	}
    	if want := "124"; srcLineNo != want {
    		t.Fatalf("line number = %v; want %s", srcLineNo, want)
    	}
    }
    
    // This is line 123. The test depends on that.
    func TestAddr2Line(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	tmpDir, err := os.MkdirTemp("", "TestAddr2Line")
    	if err != nil {
    		t.Fatal("TempDir failed: ", err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    		UncompressedSize: 987654321,
    		ModifiedTime:     1234,
    		ModifiedDate:     5678,
    	}
    	testHeaderRoundTrip(fh, fh.UncompressedSize, uint64(fh.UncompressedSize), t)
    }
    
    func TestFileHeaderRoundTrip64(t *testing.T) {
    	fh := &FileHeader{
    		Name:               "foo.txt",
    		UncompressedSize64: 9876543210,
    		ModifiedTime:       1234,
    		ModifiedDate:       5678,
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  5. src/bufio/bufio_test.go

    	}
    	if got, want := NewReaderSize(nil, 1234).Size(), 1234; got != want {
    		t.Errorf("NewReaderSize's Reader.Size = %d; want %d", got, want)
    	}
    }
    
    func TestWriterSize(t *testing.T) {
    	if got, want := NewWriter(nil).Size(), DefaultBufSize; got != want {
    		t.Errorf("NewWriter's Writer.Size = %d; want %d", got, want)
    	}
    	if got, want := NewWriterSize(nil, 1234).Size(), 1234; got != want {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/operand_test.go

    	{"$0.5", "$(0.5)"},
    	{"0(R26)", "(R26)"},
    	{"0(RSP)", "(RSP)"},
    	{"$1", "$1"},
    	{"$-1", "$-1"},
    	{"$1000", "$1000"},
    	{"$1000000000", "$1000000000"},
    	{"$0x7fff3c000", "$34358935552"},
    	{"$1234", "$1234"},
    	{"$~15", "$-16"},
    	{"$16", "$16"},
    	{"-16(RSP)", "-16(RSP)"},
    	{"16(RSP)", "16(RSP)"},
    	{"1(R1)", "1(R1)"},
    	{"-1(R4)", "-1(R4)"},
    	{"18740(R5)", "18740(R5)"},
    	{"$2", "$2"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback.go

    func stack1224() { var buf [1224]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1228() { var buf [1228]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1232() { var buf [1232]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1236() { var buf [1236]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1240() { var buf [1240]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1244() { var buf [1244]byte; use(buf[:]); C.callGoStackCheck() }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  8. src/archive/tar/reader_test.go

    		wantErr: ErrHeader,
    	}, {
    		input:    makeInput(FormatGNU, "1234", "fewa"),
    		wantSize: 01234,
    		wantErr:  ErrHeader,
    	}, {
    		input:    makeInput(FormatGNU, "0031"),
    		wantSize: 031,
    	}, {
    		input:   makeInput(FormatGNU, "80"),
    		wantErr: ErrHeader,
    	}, {
    		input: makeInput(FormatGNU, "1234",
    			makeSparseStrings(sparseDatas{{0, 0}, {1, 1}})...),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/lex_test.go

    		lines(
    			"#define A",
    			"#ifdef A",
    			"#define B 1234",
    			"#endif",
    			"B",
    		),
    		"1234.\n",
    	},
    	{
    		"not taken #ifdef",
    		lines(
    			"#ifdef A",
    			"#define B 1234",
    			"#endif",
    			"B",
    		),
    		"B.\n",
    	},
    	{
    		"taken #ifdef with else",
    		lines(
    			"#define A",
    			"#ifdef A",
    			"#define B 1234",
    			"#else",
    			"#define B 5678",
    			"#endif",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue1435.go

    		{call: "Setgroups([]int{0,1,2,3})", fn: func() error { return syscall.Setgroups([]int{0, 1, 2, 3}) }, filter: "Groups:", expect: "\t0 1 2 3"},
    		{call: "Setgroups(nil)", fn: func() error { return syscall.Setgroups(nil) }, filter: "Groups:", expect: ""},
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
Back to top