Sort of working scrolling window thing.

This commit is contained in:
Zed A. Shaw 2024-08-20 16:52:54 -04:00
parent 4227ee1cdc
commit 9cc6724df8
4 changed files with 55 additions and 55 deletions

View file

@ -10,7 +10,6 @@ TEST_CASE("basic brainfuck test", "[brainfuck]") {
bf.set_code(code);
// this is actually ticks, not code length
bf.run(code.size());
REQUIRE(bf.data[0] == 1);
@ -35,9 +34,10 @@ TEST_CASE("brainfuck loop test", "[brainfuck]") {
string code{"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."};
bf.set_code(code);
bf.run(code.size());
// have it run a bunch of times
bf.run(10000);
string output = bf.out.str();
string output = bf.to_string();
REQUIRE(output == expected);
}