mirror of
https://github.com/mre/mos6502.git
synced 2025-02-20 09:29:02 +00:00
fix syntax error
This commit is contained in:
parent
c440637adb
commit
7e8171487e
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user