mirror of
https://github.com/pevans/erc-c.git
synced 2024-08-19 17:29:34 +00:00
Add test for switch_latch
This commit is contained in:
parent
50dfca476b
commit
f696346806
@ -267,3 +267,16 @@ Test(apple2_dd, switch_drive)
|
||||
|
||||
apple2_free(mach);
|
||||
}
|
||||
|
||||
Test(apple2_dd, switch_latch)
|
||||
{
|
||||
drive->latch = 0;
|
||||
drive->mode = DD_READ;
|
||||
|
||||
apple2_dd_switch_latch(drive, 3);
|
||||
cr_assert_eq(drive->latch, 0);
|
||||
|
||||
drive->mode = DD_WRITE;
|
||||
apple2_dd_switch_latch(drive, 5);
|
||||
cr_assert_eq(drive->latch, 5);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user