Repository navigation
Add TypeScript examples for TESTed - #57
Merged
Merged
Conversation
TomNaessens
force-pushed
the
feature/8847-tested-typescript-examples
branch
from
October 19, 2026 16:26
005d297 to
2281f40
Compare
TomNaessens
force-pushed
the
feature/8847-tested-typescript-examples
branch
from
October 19, 2026 16:40
2281f40 to
987e0a1
Compare
TomNaessens
marked this pull request as ready for review
October 19, 2026 19:26
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TomNaessens
force-pushed
the
feature/8847-tested-typescript-examples
branch
from
October 19, 2026 19:29
987e0a1 to
aa31287
Compare
TomNaessens
enabled auto-merge
October 19, 2026 19:34
bmesuere
approved these changes
Oct 19, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds TypeScript examples for TESTed under
tested/typescript/, one runnable Dodona exercise each, withtested/typescript/dirconfig.jsonsetting the language. Each exercise shows one TESTed feature and is typical for the language; the exercises that one suite judges in every language (tested/echo-name,tested/smallest) are in #64.averageaverage(numbers: number[]), TESTed's float comparison, e.g. 1.6666666666666667)stackStack, push in statements, testsize(),peek()andpop()parse-positiveparsePositivethrows anErrorwith messagenot a positive number; TESTed checks type and messageDescriptions in en and nl.
export { ... }, so the descriptions say not to useexport; eslint adds a harmless "defined but never used" annotation.Part of https://github.com/dodona-edu/dodona/issues/8847.
Manual testing instructions
data/exercises/(git fetch && git checkout feature/8847-tested-typescript-examples).http://dodona.localhost:3000/dev_sign_in/1), open that repository's page and reprocess its activities.solution/solution.ts: all tests pass.TypeErrorinstead of anError: the two valid cases pass, the three exception cases fail.Verification (dodona-authoring verify skill, ghcr.io/dodona-edu/dodona-tested, universal-judge master)
DSL validation passes for every suite. "en" and "nl" are full runs the way Dodona does them, with that
natural_language.// wrong: 0 correct)// wrong: 0 correct)// wrong: 0 correct;TypeError, another message, or never throwing: the 3 exception cases fail)🤖 Generated with Claude Code