21 lines
381 B
C++
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;
|
|
} |