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

One of two-bucket's test case is wrong #1890

Closed
hl-a-k opened this issue Apr 2, 2024 · 3 comments
Closed

One of two-bucket's test case is wrong #1890

hl-a-k opened this issue Apr 2, 2024 · 3 comments

Comments

@hl-a-k
Copy link

hl-a-k commented Apr 2, 2024

In this execrism: https://exercism.org/tracks/rust/exercises/two-bucket,
this test case is wrong.
In this case, the right answer is:

stepsize of bucket 1size of bucket 2
105
200
330
403
533
615
#[test]
#[ignore]
fn measure_using_bucket_one_of_size_3_and_bucket_two_of_size_5_start_with_bucket_two() {
    let output = solve(3, 5, 1, &Bucket::Two);
    let expected = Some(BucketStats {
        moves: 8,
        goal_bucket: Bucket::Two,
        other_bucket: 3,
    });
    assert_eq!(output, expected);
}
Copy link
Contributor

github-actions bot commented Apr 2, 2024

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

If you're interested in learning more about this auto-responder, please read this blog post.

@github-actions github-actions bot closed this as completed Apr 2, 2024
@senekor
Copy link
Contributor

senekor commented Apr 2, 2024

from the instructions:

After an action, you may not arrive at a state where the initial starting bucket is empty and the other bucket is full.

This is the case in your step three.

@hl-a-k
Copy link
Author

hl-a-k commented Apr 6, 2024

Cool man. Thanks a lot.

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