Skip to content

Apostrophe & more poetic numeral tests#268

Open
SpecificProtagonist wants to merge 1 commit intoRockstarLang:mainfrom
SpecificProtagonist:apostrophe-and-literal-test
Open

Apostrophe & more poetic numeral tests#268
SpecificProtagonist wants to merge 1 commit intoRockstarLang:mainfrom
SpecificProtagonist:apostrophe-and-literal-test

Conversation

@SpecificProtagonist
Copy link
Copy Markdown

@SpecificProtagonist SpecificProtagonist commented Feb 1, 2021

I added some test cases where Satriani was non-compliant with the spec.
In particular, the old apostrophesIgnored test didn't check for apostrophes in general, but within poetic numerals, where any non-letter (apart from the first .) are ignored. I instead added other checks where apostrophes have to be ignored even when not in peotic numerals, which in most cases (e.g. Foo' is ok) caused Satriani to fail to parse the test. At the moment, single quotes are very annoying to implement correctly for very little benefit, so changing the spec instead would probably be a good idea.

The poetic literal test now also checks for ignoring non-letters and the possibility of non-ASCII letters (which can hang Satriani if used as the start and fail to parse elsewise).

@SpecificProtagonist SpecificProtagonist force-pushed the apostrophe-and-literal-test branch from 7d89953 to e1b7225 Compare February 1, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant