Skip to content

Sync two-bucket tests#605

Merged
ryanplusplus merged 1 commit intomainfrom
sync-two-bucket
Sep 16, 2025
Merged

Sync two-bucket tests#605
ryanplusplus merged 1 commit intomainfrom
sync-two-bucket

Conversation

@ryanplusplus
Copy link
Member

Closes #604

@github-actions
Copy link
Contributor

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

Comment on lines +6 to +9
bucket_one_capacity = 3, --
bucket_two_capacity = 5, --
goal_volume = 1, --
start_bucket = 1 --
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These empty comments force favorable formatting

Comment on lines +83 to 107
it('measure using bucket one much bigger than bucket two', function()
assert.are.same(two_bucket.measure({
bucket_one_capacity = 5, --
bucket_two_capacity = 1, --
goal_volume = 2, --
start_bucket = 1 --
}), {
moves = 6, --
other_bucket_volume = 1, --
goal_bucket_number = 1 --
})
end)

it('measure using bucket one much smaller than bucket two', function()
assert.are.same(two_bucket.measure({
bucket_one_capacity = 3, --
bucket_two_capacity = 15, --
goal_volume = 9, --
start_bucket = 1 --
}), {
moves = 6, --
other_bucket_volume = 0, --
goal_bucket_number = 2 --
})
end)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two tests are new

@ryanplusplus ryanplusplus merged commit 2fb91ca into main Sep 16, 2025
3 checks passed
@ryanplusplus ryanplusplus deleted the sync-two-bucket branch September 16, 2025 10:15
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.

🚨 configlet sync --test found unsynced tests

3 participants