diff --git a/MC6809/unittest/mc6809_tests.cpp b/MC6809/unittest/mc6809_tests.cpp index 3ec28d3..10a23f5 100644 --- a/MC6809/unittest/mc6809_tests.cpp +++ b/MC6809/unittest/mc6809_tests.cpp @@ -2,13 +2,14 @@ #include "Board.h" // Using examples from 6809 Assembly Language Programming, by Lance A. Leventhal +// Just test the basics... TEST_CASE("Add Accumulator B to Index Register X Unsigned ", "[ABX]") { Board board; board.initialise(); auto& cpu = board.CPU(); - cpu.step(); // Jump over the reset + cpu.step(); // Step over the reset SECTION("Inherent") { board.poke(0, 0x3a); @@ -18,37 +19,3 @@ TEST_CASE("Add Accumulator B to Index Register X Unsigned ", "[ABX]") { REQUIRE(cpu.X() == 0x111b); } } - - -//TEST_CASE( "vectors can be sized and resized", "[vector]" ) { -// -// std::vector v( 5 ); -// -// REQUIRE( v.size() == 5 ); -// REQUIRE( v.capacity() >= 5 ); -// -// SECTION( "resizing bigger changes size and capacity" ) { -// v.resize( 10 ); -// -// REQUIRE( v.size() == 10 ); -// REQUIRE( v.capacity() >= 10 ); -// } -// SECTION( "resizing smaller changes size but not capacity" ) { -// v.resize( 0 ); -// -// REQUIRE( v.size() == 0 ); -// REQUIRE( v.capacity() >= 5 ); -// } -// SECTION( "reserving bigger changes capacity but not size" ) { -// v.reserve( 10 ); -// -// REQUIRE( v.size() == 5 ); -// REQUIRE( v.capacity() >= 10 ); -// } -// SECTION( "reserving smaller does not change size or capacity" ) { -// v.reserve( 0 ); -// -// REQUIRE( v.size() == 5 ); -// REQUIRE( v.capacity() >= 5 ); -// } -//}