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

11 lines
249 B
JavaScript
Raw Permalink 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
})
})