mirror of
https://github.com/emkay/parser-6502.git
synced 2024-12-21 15:29:19 +00:00
19 lines
303 B
JavaScript
19 lines
303 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: [
|
||
|
'$,C000'
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
label: 'RESET:'
|
||
|
}
|
||
|
])
|
||
|
})
|