Parallel Letter Frequency
This commit is contained in:
parent
3ca9867a11
commit
af89290bbc
45 changed files with 2862 additions and 0 deletions
37
sqlite/hello-world/test_reporter.sql
Normal file
37
sqlite/hello-world/test_reporter.sql
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
-- Upadate message for failed tests to give helpful information:
|
||||
UPDATE tests
|
||||
SET
|
||||
message = (
|
||||
'Greeting' || ' is "' || COALESCE(actual.greeting, 'NULL') || '" but should be "' || tests.expected || '"'
|
||||
)
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
greeting
|
||||
FROM
|
||||
hello_world
|
||||
) AS actual
|
||||
WHERE
|
||||
tests.status = 'fail';
|
||||
|
||||
-- Save results to ./output.json (needed by the online test-runner)
|
||||
.mode json
|
||||
.once './output.json'
|
||||
SELECT
|
||||
name,
|
||||
status,
|
||||
message,
|
||||
output,
|
||||
test_code,
|
||||
task_id
|
||||
FROM
|
||||
tests;
|
||||
|
||||
-- Display test results in readable form for the student:
|
||||
.mode table
|
||||
SELECT
|
||||
name,
|
||||
status,
|
||||
message
|
||||
FROM
|
||||
tests;
|
||||
Loading…
Add table
Add a link
Reference in a new issue