The use of Debug.todo
is problematic in this concept exercise. After I implemented the first task I hit this error.
We received the following error when we ran your code:
elm-test-rs 3.0.0 for elm 0.19.1
--------------------------------
✓ Compilation of tests modules succeeded
node:internal/event_target:1100
process.nextTick(() => { throw err; });
^
Error: TODO in module `PaolasPrestigiousPizza` on line 31
Please implement this parser
at _Debug_crash (/tmp/solution/elm-stuff/tests-0.19.1/js/Runner.elm.js:499:10)
at /tmp/solution/elm-stuff/tests-0.19.1/js/Runner.elm.js:255:3
at /tmp/solution/elm-stuff/tests-0.19.1/js/Runner.elm.js:3991:4
at Object.<anonymous> (/tmp/solution/elm-stuff/tests-0.19.1/js/Runner.elm.js:5636:86)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
Emitted 'error' event on Worker instance at:
at [kOnErrorMessage] (node:internal/worker:326:10)
at [kOnMessage] (node:internal/worker:337:37)
at MessagePort.<anonymous> (node:internal/worker:232:57)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:826:20)
at exports.emitMessage (node:internal/per_context/messageport:23:28)
Node.js v20.11.1
Changing all Debug.todo
to Parser.problem
fixed it and allowed me to move on to the next task.