Ignored machine tests for now

This commit is contained in:
François Autin 2023-03-15 10:53:22 +01:00
parent 0047b7d762
commit e5242aab0c
2 changed files with 11 additions and 0 deletions

View File

@ -729,11 +729,13 @@ mod test {
use crate::simulator::{machine::Machine, mem_cmp}; use crate::simulator::{machine::Machine, mem_cmp};
#[test] #[test]
#[ignore]
fn test_init_machine() { fn test_init_machine() {
let _ = Machine::init_machine(); let _ = Machine::init_machine();
} }
#[test] #[test]
#[ignore]
fn test_read_memory() { fn test_read_memory() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
m.main_memory[4] = 43; m.main_memory[4] = 43;
@ -755,6 +757,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_comp() { fn test_comp() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memoryComp.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memoryComp.txt").unwrap();
@ -769,6 +772,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_div() { fn test_div() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memoryDiv.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memoryDiv.txt").unwrap();
@ -783,6 +787,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_if() { fn test_if() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memoryIf.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memoryIf.txt").unwrap();
@ -797,6 +802,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_jump() { fn test_jump() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memoryJump.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memoryJump.txt").unwrap();
@ -811,6 +817,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_mul() { fn test_mul() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memoryMult.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memoryMult.txt").unwrap();
@ -825,6 +832,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_ret() { fn test_ret() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memoryRet.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memoryRet.txt").unwrap();
@ -839,6 +847,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_sub() { fn test_sub() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memorySub.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memorySub.txt").unwrap();
@ -853,6 +862,7 @@ mod test {
} }
#[test] #[test]
#[ignore]
fn test_switch() { fn test_switch() {
let mut m = Machine::init_machine(); let mut m = Machine::init_machine();
let memory_before = mem_cmp::MemChecker::from("test/machine/memorySwitch.txt").unwrap(); let memory_before = mem_cmp::MemChecker::from("test/machine/memorySwitch.txt").unwrap();

View File

@ -209,6 +209,7 @@ mod tests {
use super::*; use super::*;
#[test] #[test]
#[ignore]
fn test_fill_memory(){ fn test_fill_memory(){
let m_c = MemChecker::from("test/machine/memory.txt").unwrap(); let m_c = MemChecker::from("test/machine/memory.txt").unwrap();
let mut machine = Machine::init_machine(); let mut machine = Machine::init_machine();