From 4254c02f550f91d9403ae95b73ad10969b09b6cc Mon Sep 17 00:00:00 2001 From: Sam M W Date: Sun, 2 Apr 2023 21:53:36 +0100 Subject: [PATCH] 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 --- src/memory.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/memory.rs b/src/memory.rs index 097c110..4428978 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -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() {