Skip to main content
Module

x/ohm_js/test/test-input-stream.js

A library and language for building parsers, interpreters, compilers, etc.
Go to Latest
File
import {InputStream} from '../src/InputStream.js';
import test from 'ava';
test('next() at end', t => { const inputStream = new InputStream(''); t.is(inputStream.atEnd(), true); t.is(inputStream.next(), undefined); t.is(inputStream.atEnd(), true);});