libs/ppcg.@
Table of Contents
Function count: 6
Click on genres to show all functions in that genre.
(IO) | DisplayTestCases , PrintSubmission , PrintTestCases |
(string) | ExecuteTestCases , FormatTestCases , Submission |
DisplayTestCases[fn func, [(*)] tc] → [[(*)]]
(IO)
Displays each test case. ExecuteTestCases[fn func, [(*)] tc] → [[(*)]]
(string)
Returns a list of inputs and outputs for func
and tc
. FormatTestCases[fn func, [(*)] tc] → [string]
(string)
Returns a list of strings of formatted test cases of the form input -> output
. PrintSubmission[string code] → [string]
(IO)
Prints Submission[code]
. PrintTestCases[(*) ...args] → [[string]]
(IO)
Prints each string in FormatTestCases[...args]
. Submission[string code] → string
(string)
Formats code
as a PPCG submission.