djc / askama

Type-safe, compiled Jinja-like templates for Rust
Apache License 2.0
3.35k stars 215 forks source link

Add more tests for floating parsing #1017

Closed GuillaumeGomez closed 4 months ago

GuillaumeGomez commented 4 months ago

Fixes https://github.com/djc/askama/issues/1016.

I couldn't find a way to ensure that 1. wasn't the start of 1.. so for now, I just added more tests about it in case someone else wants to give it a try.

As for .1 syntax, rust doesn't allow it so it's easy: just adding tests for it and not changing anything.

djc commented 4 months ago

Thanks!