Two buckets test question

I have the Two buckets finished all but one test. I am not sure the test is right. Can some one explain to me why the following test comes out to be 2, “two”,2) When I get 4,“two”,1) I did this one by hand and I think 4,“two”, 1 is right. Here is the test in the python file. If someone can tell me with the rules of two bucket why this is I am sure I can fix the code
_of_size_3_start_with_bucket_one_and_end_with_bucket_two(
self,
):
self.assertEqual(measure(2, 3, 3, “one”), (2, “two”, 2))

With other test cases, we only ever pour new water into the start bucket. This test case has a solution where something different happens.

We never pour new water into the non-start bucket when the start bucket is empty.

Gees I must have been tired last night. Thanks for the hint. I am awake this morning and I have the stupid thing working. I get it now. I just missed that case. Now I can go do it in all three languages for 48. Python is my tests language for 48.

1 Like

Glad you’re enjoying 48in24!