Skip to content

Commit fbc6769

Browse files
authored
September exercise sync of two-bucket tests. (#3994)
New tests were added and solutions need to be re-run.
1 parent ab7852e commit fbc6769

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

exercises/practice/two-bucket/.meta/tests.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ description = "Measure one step using bucket one of size 1 and bucket two of siz
2727
[eb329c63-5540-4735-b30b-97f7f4df0f84]
2828
description = "Measure using bucket one of size 2 and bucket two of size 3 - start with bucket one and end with bucket two"
2929

30+
[58d70152-bf2b-46bb-ad54-be58ebe94c03]
31+
description = "Measure using bucket one much bigger than bucket two"
32+
33+
[9dbe6499-caa5-4a58-b5ce-c988d71b8981]
34+
description = "Measure using bucket one much smaller than bucket two"
35+
3036
[449be72d-b10a-4f4b-a959-ca741e333b72]
3137
description = "Not possible to reach the goal"
3238

exercises/practice/two-bucket/two_bucket_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These tests are auto-generated with test data from:
22
# https://github.com/exercism/problem-specifications/tree/main/exercises/two-bucket/canonical-data.json
3-
# File last updated on 2023-07-21
3+
# File last updated on 2025-09-23
44

55
import unittest
66

@@ -40,6 +40,12 @@ def test_measure_using_bucket_one_of_size_2_and_bucket_two_of_size_3_start_with_
4040
):
4141
self.assertEqual(measure(2, 3, 3, "one"), (2, "two", 2))
4242

43+
def test_measure_using_bucket_one_much_bigger_than_bucket_two(self):
44+
self.assertEqual(measure(5, 1, 2, "one"), (6, "one", 1))
45+
46+
def test_measure_using_bucket_one_much_smaller_than_bucket_two(self):
47+
self.assertEqual(measure(3, 15, 9, "one"), (6, "two", 0))
48+
4349
def test_not_possible_to_reach_the_goal(self):
4450
with self.assertRaisesWithMessage(ValueError):
4551
measure(6, 15, 5, "one")

0 commit comments

Comments
 (0)