From 381b2a69bdae6761d7d6155a055566230070e2fb Mon Sep 17 00:00:00 2001 From: John Breaux Date: Mon, 17 Apr 2023 05:26:49 -0500 Subject: [PATCH] tests: load_region asserts that all data must be copied --- src/cpu/bus.rs | 2 +- tests/chip8_test_suite.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/bus.rs b/src/cpu/bus.rs index 4c33e2d..04c9331 100644 --- a/src/cpu/bus.rs +++ b/src/cpu/bus.rs @@ -18,7 +18,7 @@ use std::{ /// # use chirp::*; /// let mut bus = bus! { /// Stack [0x0000..0x0800] = b"ABCDEF", -/// Program [0x0800..0x1000] = include_bytes!("bus.rs"), +/// Program [0x0800..0xf000] = include_bytes!("bus.rs"), /// }; /// ``` #[macro_export] diff --git a/tests/chip8_test_suite.rs b/tests/chip8_test_suite.rs index 72738f6..bd3c434 100644 --- a/tests/chip8_test_suite.rs +++ b/tests/chip8_test_suite.rs @@ -18,7 +18,7 @@ fn setup_environment() -> (CPU, Bus) { // Load the ROM file into RAM Program [0x0200..0x1000], // Create a screen, and fill it with garbage - Screen [0x0F00..0x1000] = include_bytes!("chip8_test_suite.rs"), + Screen [0x0F00..0x1000] = b"jsuadhgufywegrwsdyfogbbg4owgbrt", }, ) }