munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.88k stars 1.04k forks source link

Improve test case. #1018

Open proxpero opened 2 years ago

proxpero commented 2 years ago

BANG_EQUAL is tested twice but BANG and EQUAL are not tested individually. This change swaps the ! and the = near the end of the source string, and replaces the second BANG_EQUAL expectation with expectations for EQUAL and BANG.