kursjan / petitparser2

A high-performance top-down parser
MIT License
41 stars 19 forks source link

RBArrayNode>>#asArray conflict #3

Closed pavel-krivanek closed 7 years ago

pavel-krivanek commented 7 years ago

The extension method RBArrayNode>>#asArray causes failure of the standard test RBParserTest>>#testArrayNodesArentArrays. From the test comment:

"Although an RBArrayNode represents an array, it is not an Array-like object. Therefore it shouldn't return true for message #isArray (like an instance of a real array would"

PetitParser should respect it.

pavel-krivanek commented 7 years ago

fixed in 8ebf8a1ba0a8b05c2aadac5fae35f1a1cb20b363