1
0
mirror of https://github.com/mre/mos6502.git synced 2024-09-27 03:55:26 +00:00

fix syntax error

This commit is contained in:
Noppadet Vivatchotikul 2018-10-26 09:50:43 +07:00
parent c440637adb
commit 7e8171487e

View File

@ -1160,7 +1160,7 @@ mod tests {
#[cfg(test)] #[cfg(test)]
fn compare_test_helper<F>(compare: &mut F, load_instruction: Instruction) fn compare_test_helper<F>(compare: &mut F, load_instruction: Instruction)
where where
F: FnMut(&mut cpu, u8), F: FnMut(&mut CPU, u8),
{ {
let mut cpu = CPU::new(); let mut cpu = CPU::new();
@ -1215,7 +1215,7 @@ mod tests {
#[test] #[test]
fn compare_with_a_register_test() { fn compare_with_a_register_test() {
compare_test_helper( compare_test_helper(
&mut |CPU: &mut cpu, val: u8| { &mut |cpu: &mut CPU, val: u8| {
cpu.compare_with_a_register(val); cpu.compare_with_a_register(val);
}, },
Instruction::LDA, Instruction::LDA,
@ -1225,7 +1225,7 @@ mod tests {
#[test] #[test]
fn compare_with_x_register_test() { fn compare_with_x_register_test() {
compare_test_helper( compare_test_helper(
&mut |CPU: &mut cpu, val: u8| { &mut |cpu: &mut CPU, val: u8| {
cpu.compare_with_x_register(val); cpu.compare_with_x_register(val);
}, },
Instruction::LDX, Instruction::LDX,
@ -1235,7 +1235,7 @@ mod tests {
#[test] #[test]
fn compare_with_y_register_test() { fn compare_with_y_register_test() {
compare_test_helper( compare_test_helper(
&mut |CPU: &mut cpu, val: u8| { &mut |cpu: &mut CPU, val: u8| {
cpu.compare_with_y_register(val); cpu.compare_with_y_register(val);
}, },
Instruction::LDY, Instruction::LDY,