apple2js/test/js
Ian Flanigan 7e41c69366
Add a basic write test for WOZ images (#138)
* Add a basic write test for WOZ images

The new test just tries to change some random nibbles at the beginning
of the image and then verifies that the change has been recorded.
This exposed a bug where `q7` was never set to `true` when write mode
was toggled on.

Also, the assumptions and limitations of `moveHead` are more clearly
documented.

* Address comments

* Improved `moveHead` documentation a bit more.
* Removed redundant variable in `readNibble`.
* Refactored `findSector` and commented out the chatty log line.

All tests pass. No lint warnings.
2022-06-23 06:38:36 -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 a basic write test for WOZ images (#138) 2022-06-23 06:38:36 -07:00
formats 2IMG Download support. (#137) 2022-06-21 20:34:19 -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 Cheap and cheerful debugger (#135) 2022-06-19 19:42:34 -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 2IMG Download support. (#137) 2022-06-21 20:34:19 -07:00