Suloch / chirp

Interpreter in C for rockstar programing language
MIT License
22 stars 5 forks source link

Fix string termination checks in numberPoetic() #2

Closed meffie closed 5 years ago

meffie commented 5 years ago

Fix a bug in numberPoetic() where the input string is access passed the end of the string.

Add a unit tests for numberPoetic() to test various poetic literal evaluations.

Suloch commented 5 years ago

Thanks for going through the code, makes me happy! ^_^

meffie commented 5 years ago

Thanks Suloch. I don't think the numberPoetic() is giving correct values (see the unit tests), but I've not worked on a patch. Would you like one?

Suloch commented 5 years ago

Sure, that would help.