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

Does this support unordered output? #12

Closed
jamietanna opened this issue Aug 30, 2022 · 1 comment
Closed

Does this support unordered output? #12

jamietanna opened this issue Aug 30, 2022 · 1 comment

Comments

@jamietanna
Copy link

I just spotted in https://pkg.go.dev/cmd/go/internal/test:

Here is another example where the ordering of the output is ignored:

	func ExamplePerm() {
		for _, value := range Perm(4) {
			fmt.Println(value)
		}

		// Unordered output: 4
		// 2
		// 1
		// 3
		// 0
	}

And we may want to make that a valid case, too?

@maratori
Copy link
Owner

Yes, it supports all example capabilities because it uses stdlib to get example info, see https://github.com/maratori/testableexamples/blob/main/pkg/testableexamples/testableexamples.go#L25

@jamietanna jamietanna closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2022
@maratori maratori pinned this issue Aug 30, 2022
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