1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-06-06 04:29:29 +00:00
parser-6502/test/assembler.js
2016-10-11 17:01:15 -07:00

22 lines
343 B
JavaScript

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: [
[
'address',
'C000'
]
]
},
{
label: 'RESET'
}
])
})