FSE/test/Tests.cpp
IlyaShurupov cd593ab024 Refactor
2024-03-29 12:48:08 +03:00

43 lines
No EOL
1.1 KiB
C++

#include "Interpreter.hpp"
#include "UnitTest++/UnitTest++.h"
int main() {
Interpreter interpreter;
interpreter.interpret("");
interpreter.interpret("m");
interpreter.interpret("mD a");
interpreter.interpret("mD /");
interpreter.interpret("MD /A123");
interpreter.interpret("cd /A123");
interpreter.interpret("md asd");
interpreter.interpret("md asd/b");
interpreter.interpret("md asd/b/c");
interpreter.interpret("md asd/b/c/d");
interpreter.interpret("cd asd/b/c/d");
interpreter.interpret("cd /");
interpreter.interpret("copy A123 / ");
interpreter.interpret("rd d");
interpreter.interpret("deltree A123");
interpreter.interpret("deltree A123_copy");
interpreter.interpret("md a");
interpreter.interpret("md a/b");
interpreter.interpret("md a/b/c");
interpreter.interpret("mhl a /a/b/c/");
interpreter.interpret("md a/b/c/a/k");
interpreter.interpret("copy a /");
interpreter.interpret("mdl a/b/c /a_copy/k");
interpreter.interpret("move a/b/c /a_copy");
interpreter.interpret("del /a_copy/k/c");
return UnitTest::RunAllTests();
}