Numworks Epsilon  1.4.1
Graphing Calculator Operating System
keyboard.cpp
Go to the documentation of this file.
1 #include <quiz.h>
2 #include <ion.h>
3 #include <assert.h>
4 
5 using namespace Ion::Keyboard;
6 
7 QUIZ_CASE(ion_keyboard) {
8  for (Key k : ValidKeys) {
9  for (Key l : ValidKeys) {
10  assert(State(k).keyDown(l) == (k == l));
11  }
12  }
13 }
14 
#define assert(e)
Definition: assert.h:9
QUIZ_CASE(ion_keyboard)
Definition: keyboard.cpp:7
constexpr Key ValidKeys[]
Definition: keyboard.h:24