1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-12-30 12:31:29 +00:00
parser-6502/test/assembler.js
Michael Matuzak e8ca1f9bcd yep
2016-10-11 17:59:26 -07:00

21 lines
333 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'
}
])
})