PROG_3B/tests.txt
2025-11-24 16:06:37 +01:00

48 lines
3.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

========================================================
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.
========================================================