From 9f1a71db4b34e3c9b2f70eca90e1b54382c006f1 Mon Sep 17 00:00:00 2001 From: Xiangyun Chi Date: Sun, 13 Dec 2015 16:01:54 +0000 Subject: [PATCH] Added two more test cases to the challenge. So that hard coded solution do not pass. --- challenges/object-oriented-and-functional-programming.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/challenges/object-oriented-and-functional-programming.json b/challenges/object-oriented-and-functional-programming.json index 2210011b53..c57bd8080f 100644 --- a/challenges/object-oriented-and-functional-programming.json +++ b/challenges/object-oriented-and-functional-programming.json @@ -206,6 +206,8 @@ ], "tests": [ "assert((function(){var testCar = new Car(3,1,2); return testCar.wheels === 3 && testCar.seats === 1 && testCar.engines === 2;})(), 'message: Calling new Car(3,1,2) should produce an object with a wheels property of 3, a seats property of 1, and an engines property of 2.');", + "assert((function(){var testCar = new Car(4,4,2); return testCar.wheels === 4 && testCar.seats === 4 && testCar.engines === 2;})(), 'message: Calling new Car(4,4,2) should produce an object with a wheels property of 4, a seats property of 4, and an engines property of 2.');", + "assert((function(){var testCar = new Car(2,6,3); return testCar.wheels === 2 && testCar.seats === 6 && testCar.engines === 3;})(), 'message: Calling new Car(2,6,3) should produce an object with a wheels property of 2, a seats property of 6, and an engines property of 3.');", "assert(typeof myCar.wheels === 'number' && typeof myCar.seats === 'number' && typeof myCar.engines === 'number', 'message: myCar should have number values for the wheels, seats, and engines properties.');" ], "challengeSeed": [