Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The <= and >= operators are unrecognized #187

Closed
kennytm opened this issue Jun 10, 2017 · 3 comments
Closed

The <= and >= operators are unrecognized #187

kennytm opened this issue Jun 10, 2017 · 3 comments

Comments

@kennytm
Copy link

kennytm commented Jun 10, 2017

Test case:

    assert_eq!(Tera::one_off("
        {% if 1 <= 2 %}a{% endif %}
    ", &Context::new(), false).unwrap(), "
        a
    ");

Causes panic with:

thread 'test_1' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Msg("Failed to parse \'one_off\'"), State { next_error: Some(Error(Msg("Invalid Tera syntax at line 2, column 18"), State { next_error: None, backtrace: None })), backtrace: None })', src/libcore/result.rs:860
@Keats
Copy link
Owner

Keats commented Jun 11, 2017

Thanks a lot, I just fixed it with 337a7dc

@kennytm
Copy link
Author

kennytm commented Jun 11, 2017

Thanks :) Changelog.md has a typo though (>= becomes =>).

@Keats
Copy link
Owner

Keats commented Jun 16, 2017

In 0.10.7

@Keats Keats closed this as completed Jun 16, 2017
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

No branches or pull requests

2 participants