|
|
|
[
|
|
|
|
{
|
|
|
|
"description": "shaker is defined and is a function",
|
|
|
|
"code": "equal(typeof shaker, 'function')"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "shaker has 3 arguments",
|
|
|
|
"code": "equal(shaker.length, 3)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "shaker can make a cocktail.",
|
|
|
|
"code": "equal(shaker(1, 'strawberry', true), '1 strawberry cocktail')"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "shaker can make a milkshake.",
|
|
|
|
"code": "equal(shaker(1, 'strawberry', false), '1 strawberry milkshake')"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "shaker can make multiple cocktails.",
|
|
|
|
"code": "equal(shaker(7, 'banana', true), '7 banana cocktails')"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "shaker can make multiple milkshakes.",
|
|
|
|
"code": "equal(shaker(22, 'banana', false), '22 banana milkshakes')"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "shaker is shakin it right.",
|
|
|
|
"code": "equal(shaker(1, 'vanilla', true), '1 vanilla cocktail')\nequal(shaker(1, 'mango', true), '1 mango cocktail')\nequal(shaker(2, 'banana', true), '2 banana cocktails')\nequal(shaker(2, 'chocolate', false), '2 chocolate milkshakes')\nequal(shaker(2, 'vanilla', false), '2 vanilla milkshakes')\nequal(shaker(2, 'strawberry', false), '2 strawberry milkshakes')"
|
|
|
|
}
|
|
|
|
]
|