Files
Upsilon/ion/test/keyboard.cpp
Émilie Feral f9a1caa8eb [ion] Add a class State in Keyboard
Change-Id: I42b2c892deaedc83a7629d8c8be66cd4e1fbcb5c
2017-05-23 15:24:55 +02:00

15 lines
232 B
C++

#include <quiz.h>
#include <ion.h>
#include <assert.h>
using namespace Ion::Keyboard;
QUIZ_CASE(ion_keyboard) {
for (Key k : ValidKeys) {
for (Key l : ValidKeys) {
assert(State(k).keyDown(l) == (k == l));
}
}
}