pushswap/visualizer/tests/test_pushswap.cpp
Danny Jonker d0783882b6 bla
2023-03-24 16:19:05 +01:00

11 lines
236 B
C++
Executable File

#include <catch2/catch.hpp>
#include "pushswap.h"
TEST_CASE("run", "[PushSwap]") {
PushSwap ps;
ps.path = "../push_swap";
ps.run("2 1 3");
REQUIRE_FALSE(ps.commands.empty());
REQUIRE(ps.commands.front() == "sa");
}