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

11 lines
249 B
JavaScript
Raw Normal View History

2016-10-02 21:54:14 +00:00
const tap = require('tap')
const mona = require('mona')
const labelParser = require('../parsers/label')
tap.test('should parse a label', (t) => {
2016-10-12 00:01:15 +00:00
t.plan(1)
t.deepEqual(mona.parse(labelParser(), 'SOMETHING:\n'), {
label: 'SOMETHING'
2016-10-02 21:54:14 +00:00
})
})