#include "laissez.h"
#include
class BitboardTest : public testing::Test;
TEST_F(BitboardTest, LoadsAndReturnsStartingFen) {
Bitboard b;
b.loadFEN(boards::kStartingFen);
EXPECT_STREQ(b.toFEN(), boards::kStartingFen);
}
int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
rspec (ruby)
describe Bitboard do
it "should load and return the same string given the starting FEN" do
b = Bitboard.new.load_fen(Board::STARTING_FEN)
b.to_fen.should == Board::STARTING_FEN
end
end