pushswap/visualizer/tests/test_pushswap.cpp

11 lines
236 B
C++
Raw Normal View History

2023-03-24 16:19:05 +01:00
#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");
}