apple2js/test/js
Ian Flanigan 5b5655b70e
Add tests for the Disk II card (#133)
* Add tests for the DiskII card

This change adds basic read tests for nibble-based disks for the
DiskII card and fixes a few minor errors.

These tests are in preparation for refactoring.

* Add write tests

These are some basic tests of writing to nibble disks.  In the process,
one minor bug was found, fixed and documented.

* Fix the write tests

I misinterpreted something from Sather and thought that the high bit
had to be set on the data for writing to happen at all.  This is not
true.  Instead, there is a flux transition every time the high bit is
set as the data is left-shifted out of the data register.  The
erroneous test has been removed.

At the same time, I finally understand what `skip` does and documented
that.

* Add tests for saving and restoring Disk II state

These are not exhaustive tests, but they ensure that some basic state
is saved and restored.
2022-06-18 16:54:33 -07:00
..
__image_snapshots__ Videomode refactor 2 (#80) 2021-05-25 12:08:10 -07:00
__mocks__ Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
cards Add tests for the Disk II card (#133) 2022-06-18 16:54:33 -07:00
formats Fix 2mg header parsing and add tests (#127) 2022-06-06 18:10:06 -07:00
ui Preact UI (#106) 2022-05-10 06:52:06 -07:00
base64.test.ts Flesh out some state stuff (#59) 2021-02-27 19:17:36 -08:00
canvas.test.ts jest 27 2021-10-02 07:21:37 -07:00
debugger.spec.ts Support Tom Harte test suite (#88) 2021-10-13 09:15:29 -07:00
gl.test.ts jest 27 2021-10-02 07:21:37 -07:00
rom.test.ts Jest lint (#118) 2022-05-30 09:29:48 -07:00
util.test.ts Jest lint (#118) 2022-05-30 09:29:48 -07:00