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

21 lines
333 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-12 00:59:26 +00:00
{
'address': 'C000'
}
2016-10-02 21:54:14 +00:00
]
},
{
2016-10-12 00:01:15 +00:00
label: 'RESET'
2016-10-02 21:54:14 +00:00
}
])
})