Blame view

build4/epsilon-master/ion/test/keyboard.cpp 232 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
  #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));
      }
    }
  }