blob: 5dc7eeaeca1b798b3a9387201810e6df5b13922f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
'use strict';
const { Core } = require('./core.js');
const { DAT } = require('./instruction.js');
const CORESIZE = 8000;
test('DAT does nothing and kills the program', () => {
const core = new Core(CORESIZE);
const pc = 0;
const ins = core.data[pc];
expect(DAT(core, pc, ins)).toEqual([]);
});
|