c-repl/test/operators.cpp

21 lines
387 B
C++

#include "include/test.hpp"
#include "../src/include/execute.hpp"
#include "../src/include/utils.hpp"
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;
}