Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
There should really be some mention of this in the description.
Thanks jakber! I was modifying the "available" object on the math. It's working now!
@jhoffner Yes, I'm aware of that, that's why I've started the question with "It's just me", because I'm a little confused. This is the test output I see when I try to send my solution:
Test Failed: Wrong result for recipe
{ "sugar": 91, "cream": 90, "nuts": 75 }
and available ingredients
{ "milk": 5700, "oil": 4900, "flour": 1600, "pears": 5900, "crumbles": 7600, "chocolate": 1200, "butter": 3700, "eggs": 600, "cocoa": 5000, "nuts": 4500, "apples": 3200, "cream": 1300, "sugar": 2700}
Expected: 0, instead got: 14.
-- The test is expecting a value of ZERO, and this can't be right: the recipe needs 91 sugar (avail.: 2700), 90 cream (avail.: 1300), 75 nuts (avail.: 4500). Pete can open a bakery and sell lots of cakes with these supplies.
Also, the tests that ran before this random ones (I think they are from the test fixtures box) are all passing.
Am I missing something here? It may be a lack of coffee, or some stupidity o'mine. Please let me know what the hell I'm doing wrong.
P.S.: I've already tried to send the solution several times, even started it over, with no success.
It's just me or the test cases are wrong?
The first tests are OK when I attempt, but the random tests are always expecting 0.
This test is clearly wrong! There are plenty of ingredients to open a bakery:
Test Failed: Wrong result for recipe
{
"sugar": 91,
"cream": 90,
"nuts": 75
}
and available ingredients
{
"milk": 5700,
"oil": 4900,
"flour": 1600,
"pears": 5900,
"crumbles": 7600,
"chocolate": 1200,
"butter": 3700,
"eggs": 600,
"cocoa": 5000,
"nuts": 4500, -- required = 75
"apples": 3200,
"cream": 1300, -- required = 90
"sugar": 2700 -- required = 91
}
Please fix ASAP, this Kata is great!