#include "unittest.h" #include "board.h" void test_notations() { printf("%u\n", notation_to_index('e', 4)); unit_test(notation_to_index('e', 4) == 28, "Notation e4 is index 28"); char notation[2] = "x0"; index_to_notation(28, notation); unit_test(notation[0] == 'e' && notation [1] == '4', "Index 28 is notation e4"); } int main() { test_notations(); report(); return 0; }