Refactor(Tests): Add proper (pp1 tests) unit tests for all logic ADTs
Tests for Positie, Doolhof, Pac-Man, Score, and Tijdslimiet ADTs using check/check-eq?/run-test from (pp1 tests) library. Centralized test runner in alle-testen.rkt with prefix imports. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
25
pacman-project/tests/alle-testen.rkt
Normal file
25
pacman-project/tests/alle-testen.rkt
Normal file
@@ -0,0 +1,25 @@
|
||||
#lang r7rs
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Alle Testen ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Voert alle ADT-testen uit. Open dit bestand en evalueer om alle testen
|
||||
;; tegelijkertijd te draaien.
|
||||
|
||||
(import (scheme base)
|
||||
(pp1 tests)
|
||||
(prefix (pacman-project tests test-positie) positie:)
|
||||
(prefix (pacman-project tests test-doolhof) doolhof:)
|
||||
(prefix (pacman-project tests test-pacman) pacman:)
|
||||
(prefix (pacman-project tests test-score) score:)
|
||||
(prefix (pacman-project tests test-tijdslimiet) tijdslimiet:))
|
||||
|
||||
(define (test-alles)
|
||||
(positie:test)
|
||||
(doolhof:test)
|
||||
(pacman:test)
|
||||
(score:test)
|
||||
(tijdslimiet:test))
|
||||
|
||||
(test-alles)
|
||||
Reference in New Issue
Block a user