mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-12 22:15:00 +00:00
21 lines
529 B
C++
21 lines
529 B
C++
//
|
|
// Created by cbihan on 9/29/20.
|
|
//
|
|
|
|
#include <catch2/catch.hpp>
|
|
#include <iostream>
|
|
#include <bitset>
|
|
#include "../tests.hpp"
|
|
#include "../../sources/SNES.hpp"
|
|
#include "../../sources/Memory/MemoryBus.hpp"
|
|
#include "../../sources/PPU/PPU.hpp"
|
|
|
|
using namespace ComSquare;
|
|
|
|
TEST_CASE("basicTest backgroundGetTilePixelReference", "[backgroundGetTilePixelReference]")
|
|
{
|
|
Init()
|
|
snes.bus.write(0x2100, 0b11111111);
|
|
REQUIRE(snes.ppu._registers._inidisp.fblank == true);
|
|
REQUIRE(snes.ppu._registers._inidisp.brightness == 0xF);
|
|
} |