1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-06-29 02:29:44 +00:00
parser-6502/test/assembler.js

22 lines
344 B
JavaScript
Raw Normal View History

2016-10-02 21:54:14 +00:00
const tap = require('tap')
const parser = require('..')
tap.test('should parse the basics', (t) => {
t.plan(1)
const input = '.org $C000\nRESET:\n'
t.deepEqual(parser(input), [
{
directive: '.org',
args: [
2016-10-07 22:54:31 +00:00
[
'address',
'C000'
]
2016-10-02 21:54:14 +00:00
]
},
{
label: 'RESET:'
}
])
})