8000 fix #1301, nowarn for automatic Array conversion by ahoy-jon · Pull Request #1303 · getkyo/kyo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix #1301, nowarn for automatic Array conversion #1303

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

Merged
merged 1 commit into from
Jun 30, 2025
Merged

Conversation

ahoy-jon
Copy link
Collaborator

No description provided.

@ahoy-jon ahoy-jon linked an issue Jun 29, 2025 that may be closed by this pull request
@ahoy-jon ahoy-jon marked this pull request as ready for review June 29, 2025 23:49
@hearnadam
Copy link
Collaborator

If it's implicitely converting to Seq, is that what the tests actually want? I would have expected the mutability was the test.

@ahoy-jon
Copy link
Collaborator Author

@hearnadam it's testing for immutable builders:

            val result = Choice.run(
                Kyo.foreach(Array("x", "y")) { str =>
                    Choice.eval(true, false).map(b =>
                        if b then str.toUpperCase else str
                    )
                }
            ).eval
            assert(result.contains(Chunk("X", "Y")))
            assert(result.contains(Chunk("X", "y")))
            assert(result.contains(Chunk("x", "Y")))
            assert(result.contains(Chunk("x", "y")))
            assert(result.size == 4)

@ahoy-jon ahoy-jon force-pushed the 1301-fix-choicetest branch from 90d1fb3 to c73eb30 Compare June 30, 2025 10:11
@fwbrasil fwbrasil merged commit 06be62e into main Jun 30, 2025
3 of 5 checks passed
@fwbrasil fwbrasil deleted the 1301-fix-choicetest branch June 30, 2025 22:07
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

Successfully merging this pull request may close these issues.

fix ChoiceTest
3 participants
0