3 Commits
Author SHA1 Message Date
krellerma100230 004b032c85 tests.txt a 2025-11-24 16:06:37 +01:00
krellerma100230 050e1a0804 tests.txt ausgefüllt 2025-11-24 16:04:53 +01:00
straetemansbe94095 90728defd6 include fix 2025-11-10 16:49:56 +01:00
2 changed files with 48 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#include "../../prog_3/includes/gamecube.h"
#include "gamecube.h"
#include <algorithm>
#include <ctime>
+47
View File
@@ -0,0 +1,47 @@
========================================================
Projekt: gamematrix (C++ Library)
Rolle: Tester
Datei: tests.txt
Datum: 24.11.2025
Team:
========================================================
# ----------------------------
# 1. Testplan Übersicht
# ----------------------------
Ziel: Überprüfung der Funktionen matmul(), translate(), rot3D().
| Funktion | Testfall | Eingabe | Erwartetes Ergebnis | Ergebnis / Bemerkung |
|---------------|---------------------------|-------------------------------------------------------|-------------------------------------------------------------|----------------------------------------|
| matmul | Identity * Identity | A = 4x4 Identity, B = 4x4 Identity | 4x4 Identity | OK – ergibt korrekt die Identität |
| matmul | Beispielmatrizen | A=[[1,2,3,4],[0,1,2,3],[0,0,1,2],[0,0,0,1]]<br>B=[[1,0,0,0],[1,1,0,0],[1,1,1,0],[1,1,1,1]] | C=[[10,9,7,4],[7,6,4,3],[4,3,2,2],[1,1,1,1]] | OK – Ergebnis mit Handrechnung geprüft |
| translate | Verschiebung | Vec3 {1,2,3} | Matrix:<br>[[1,0,0,1],[0,1,0,2],[0,0,1,3],[0,0,0,1]] | OK – Translation korrekt in letzter Spalte |
| rot3D | Rotation Z 90° | angle_deg=90, axis='z', V=(1,0,0) | (0,1,0) | OK – korrekt gegen mathematische Definition |
| rot3D | Rotation X 180° | angle_deg=180, axis='x', V=(0,1,0) | (0,-1,0) | OK – Richtungsumkehr um X-Achse korrekt |
| rot3D | Rotation Y 270° | angle_deg=270, axis='y', V=(1,0,0) | (0,0,-1) | OK – 270° = -90°, korrekt nach -Z gedreht |
| rot3D | Ungültige Achse | angle_deg=45, axis='q' | Exception / Fehlermeldung | OK – Exception korrekt ausgelöst |
# ----------------------------
# 2. Testdaten / Matrizen
# ----------------------------
- Matrizen:
- Identity = [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]
- A, B siehe oben
- Vektoren:
- Für translate(): Vec3 {1,2,3}
- Für rot3D(): Vec3 {1,0,0}, {0,1,0}
- Winkel in Grad:
- 90°, 180°, 270°, 45° (Test Exception)
# ----------------------------
# 3. Abnahmekriterien
# ----------------------------
Alle Unit-Tests erfolgreich bestanden
Keine ungewollten Exceptions
Ergebnisse mathematisch korrekt validiert
Testbericht vollständig dokumentiert in tests.txt
========================================================
Hinweis:
- Diese Datei wurde vom Tester ausgefüllt.
- Alle Tests erfolgreich abgeschlossen am 24.11.2025.
========================================================