Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running Golang tests, a line break occurs every 1024 characters. #233882

Open
0xwhatly opened this issue Nov 15, 2024 · 0 comments
Open

When running Golang tests, a line break occurs every 1024 characters. #233882

0xwhatly opened this issue Nov 15, 2024 · 0 comments
Assignees

Comments

@0xwhatly
Copy link

0xwhatly commented Nov 15, 2024

Code:


func Test_output(t *testing.T) {
	var (
		str = ""
	)
	for i := 0; i < 3000; i++ {
		str += fmt.Sprintf("%d", i)
	}
	fmt.Println(str)
}

Run method:
click run testbutton
Image

Test out:
Image

If i click debug test button,print string is normal
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants