mirror of
https://github.com/mre/mos6502.git
synced 2024-12-23 03:29:51 +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:
parent
131b0f312d
commit
4254c02f55
@ -98,13 +98,6 @@ impl Memory {
|
||||
mod tests {
|
||||
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]
|
||||
#[should_panic]
|
||||
fn test_memory_overflow_panic() {
|
||||
|
Loading…
Reference in New Issue
Block a user