From b330c72195bda0b574d9d26b35032ff0738e8e61 Mon Sep 17 00:00:00 2001 From: Louis TOUSSAINT Date: Wed, 31 Jul 2024 15:36:39 +0200 Subject: [PATCH] Tests(DPxAI): Add test for Quest01 the-smooth-operator --- js/tests/the-smooth-operator_test.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 js/tests/the-smooth-operator_test.json diff --git a/js/tests/the-smooth-operator_test.json b/js/tests/the-smooth-operator_test.json new file mode 100644 index 000000000..32d36aac7 --- /dev/null +++ b/js/tests/the-smooth-operator_test.json @@ -0,0 +1,26 @@ +[ + { + "description": "values of the variable are a result of the operations on the variable smooth ( 10 )", + "code": "let smooth = 10\n\n// Your code\n\nequal(lessSmooth, 9)\nequal(semiSmooth, 5)\nequal(plus11, 21)" + }, + { + "description": "values of the variable are a result of the operations on the variable smooth ( 27 )", + "code": "let smooth = 27\n\n// Your code\nequal(lessSmooth, 26)\nequal(semiSmooth, 13.5)\nequal(plus11, 38)" + }, + { + "description": "ultraSmooth should be the square of the value of smooth ( 10 )", + "code": "let smooth = 10\n\n// Your code\n\nequal(ultraSmooth, 100)" + }, + { + "description": "ultraSmooth should be the square of the value of smooth ( 27 )", + "code": "let smooth = 27\n\n// Your code\n\nequal(ultraSmooth, 729)" + }, + { + "description": "presentation value includes age and name .", + "code": "let name = 'Patrick'\nlet age = 48\n\n// Your code\nequal(presentation, `Hello, my name is Patrick and I'm 48 years old`)" + }, + { + "description": "presentation value still includes age and name .", + "code": "let name = 'Jeremy'\nlet age = 27\n\n// Your code\nequal(presentation, `Hello, my name is Jeremy and I'm 27 years old`)" + } +]