mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
13 lines
350 B
TypeScript
13 lines
350 B
TypeScript
import * as chai from 'chai'
|
|
import { isRange } from '../../../src/parser/lexical'
|
|
|
|
const expect = chai.expect
|
|
|
|
describe('lexical', function () {
|
|
it('should test range literal', function () {
|
|
expect(isRange('(12..32)')).to.equal(true)
|
|
expect(isRange('(12..foo)')).to.equal(true)
|
|
expect(isRange('(foo.bar..foo)')).to.equal(true)
|
|
})
|
|
})
|