-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests(DPxAI): upload test for quest01 first-function
- Loading branch information
1 parent
361c6fd
commit 7d7229c
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"description": "ask is defined and is a function", | ||
"code": "equal(typeof ask, 'function')" | ||
}, | ||
{ | ||
"description": "reply is defined and is a function", | ||
"code": "equal(typeof reply, 'function')" | ||
}, | ||
{ | ||
"description": "ask works and is called", | ||
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nequal(args[0], ['What is my purpose ?'])" | ||
}, | ||
{ | ||
"description": "reply works and is called too", | ||
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nequal(args, [['What is my purpose ?'], ['You pass butter.']])" | ||
}, | ||
{ | ||
"description": "calling reply and ask again relog the text.", | ||
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nequal(args[1], ['You pass butter.'])" | ||
} | ||
] |