1
0
mirror of https://github.com/mre/mos6502.git synced 2024-11-28 07:49:19 +00:00

Remove unit test test_memory_set_bytes

This is the right thing to do because its pass depends on
zero-initilization. Real memory will not behave this way
This commit is contained in:
Sam M W 2023-04-02 21:53:36 +01:00
parent 131b0f312d
commit 4254c02f55

View File

@ -98,13 +98,6 @@ impl Memory {
mod tests { mod tests {
use super::*; use super::*;
#[test]
fn test_memory_set_bytes() {
let mut memory = Memory::new();
memory.set_bytes(0x0100, &[1, 2, 3, 4, 5]);
assert_eq!(memory.get_slice(0x00FF, 7), &[0, 1, 2, 3, 4, 5, 0]);
}
#[test] #[test]
#[should_panic] #[should_panic]
fn test_memory_overflow_panic() { fn test_memory_overflow_panic() {