Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Klassen #15

Closed
ariogato opened this issue Dec 25, 2016 · 0 comments
Closed

Test Klassen #15

ariogato opened this issue Dec 25, 2016 · 0 comments

Comments

@ariogato
Copy link
Owner

ariogato commented Dec 25, 2016

Vielleicht sollte jemand mal eine Klasse speziell zum Testen erstellen.
Dazu würde ich spontan vorschlagen in der Hauptschleife des Programms eine Methode der Klasse aufzurufen, in der wiederum die eigenenen Testmethoden aufgerufen werden.

Dazu muss die Klasse natürlich erst erstellt werden. Das einzig komplizierte daran ist, die Klasse zum Singleteon zu machen, aber auch das wurde z.B. in Game.h gut dokumentiert.

Fürs erste soll eine Methode void testFunctions() (die wird auch in der Hauptschleife aufgerufen) implementiert werden.

Aufgabe ist also: Singleton-Klasse mit einer Methode. Den Rest (die jetzigen testStuffs in die Klasse zu verschieben) mache ich.

Kommentare auf keinen Fall vergessen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants