c-repl/test/operators.cpp
2024-01-03 16:20:42 +01:00

21 lines
381 B
C++

#include "include/test.h"
#include "../src/include/execute.h"
#include "../src/include/utils.h"
int execute(string s) {
Memory memory;
return get<int>(execute(split_string(s, '\n'), memory));
}
int main() {
_TEST_PRESENTATION("Opérateurs");
_TEST_ASSERT(
_TEST_NO_EXCEPTION(execute("1,2;") == 2),
"Virgule",
true
);
return 0;
}