Main.cpp 407 B

123456789101112131415161718192021
  1. #include "tests/HashMapTests.h"
  2. #include "tests/ListTests.h"
  3. #include "tests/BitArrayTests.h"
  4. #include "utils/BitArray.h"
  5. #include <iostream>
  6. void test(int i) {
  7. for(int k = 0; k < 32; k++) {
  8. std::cout << static_cast<char> ((i & 1) + '0');
  9. i >>= 1;
  10. }
  11. std::cout << "\n";
  12. }
  13. int main() {
  14. HashMapTests::test();
  15. ListTests::test();
  16. BitArrayTests::test();
  17. return 0;
  18. }