Skip to content

Commit 52cb46f

Browse files
committed
Test lower-case operators
1 parent 18bd587 commit 52cb46f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test.js

+18
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ it('parses `AND`, `OR` and `WITH` with the correct precedence', function () {
8282
)
8383
})
8484

85+
it('allows lower-case `and`, `or`, and `with` by default', function () {
86+
assert.deepStrictEqual(
87+
p('MIT and BSD-3-Clause or GPL-2.0 with GCC-exception-2.0'),
88+
{
89+
left: {
90+
left: { license: 'MIT' },
91+
conjunction: 'and',
92+
right: { license: 'BSD-3-Clause' }
93+
},
94+
conjunction: 'or',
95+
right: {
96+
license: 'GPL-2.0',
97+
exception: 'GCC-exception-2.0'
98+
}
99+
}
100+
)
101+
})
102+
85103
function it (message, test) {
86104
test()
87105
}

0 commit comments

Comments
 (0)