aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-09-04Moved precedence test into operators moduleLibravatar Dirkjan Ochtman2-15/+11
2017-09-03Changed implementation of precedence rulesLibravatar Lars Erik Rosengren1-0/+15
This implementation resolves djc/askama#44 by changing the precedence implementation. The previous solution was very slow because it had to try to parse all combinations of precedence layers leading to 2^9 iterations for each expr_any. This is solved by reusing the left operand instead of reparsing it when the operator isn't found. This implementation also solves another related issue that expressions with multiple operators couldn't be parsed, for example {{1 * 2 * 3}}. This is handled by using expr_any for the right operand instead of only using higher level precedence layers.
2017-09-02Add `join` filter & tests for itLibravatar defyrlt1-0/+25
2017-08-25Add test for parent default block implementationsLibravatar Bastien Orivel1-2/+2
2017-08-24Simplify Rocket test slightlyLibravatar Dirkjan Ochtman1-1/+1
2017-08-24Add test case for user-defined filtersLibravatar Dirkjan Ochtman1-0/+19
2017-08-23Add test for Rocket supportLibravatar Dirkjan Ochtman1-0/+33
2017-08-23Add test for Iron supportLibravatar Dirkjan Ochtman1-0/+20
2017-08-23Forgot to remove debugging cruft, againLibravatar Dirkjan Ochtman1-1/+1
2017-08-23Adding optional json filterLibravatar Anthony Nowell1-4/+18
2017-08-22Add test for basic macro useLibravatar Dirkjan Ochtman1-0/+16
2017-08-16Change one test case to use source attributeLibravatar Dirkjan Ochtman1-1/+1
2017-08-16Add test for variable declarationLibravatar Dirkjan Ochtman1-0/+14
2017-08-15Add test for let blocksLibravatar Dirkjan Ochtman1-0/+16
2017-08-10Disable debug output for example by defaultLibravatar Dirkjan Ochtman1-1/+1
2017-08-10Add README example as a test caseLibravatar Dirkjan Ochtman1-0/+18
2017-08-10Implement Display for all TemplatesLibravatar Dirkjan Ochtman1-0/+13
2017-08-10Propagate format errors and rename `render_to()` to `render_into()`Libravatar Dirkjan Ochtman6-23/+23
2017-08-08Add test for deref implementation (see #28)Libravatar Dirkjan Ochtman1-1/+1
2017-08-04Add test for include blocks (see #25)Libravatar Dirkjan Ochtman1-0/+19
2017-08-02Add test that starts with a single brace (see #24)Libravatar Dirkjan Ochtman1-0/+14
2017-05-26Add test for basic chained attributesLibravatar Dirkjan Ochtman1-0/+19
2017-03-08Remove type parameter defaults from impls (fixes #12)Libravatar Dirkjan Ochtman1-1/+2
2017-03-08Add test for type parameters and where clauses (see #9)Libravatar Dirkjan Ochtman1-0/+14
2017-03-07Remove debugging cruft from test_nested_forLibravatar Dirkjan Ochtman1-1/+1
2017-03-07Add test for nested loops and loops over slices (see #6, #7, #9)Libravatar Dirkjan Ochtman1-0/+17
2017-03-07Create separate test module for loopsLibravatar Dirkjan Ochtman2-15/+18
2017-03-06Hide askama_derive dependency inside askama (fixes #2)Libravatar Dirkjan Ochtman4-6/+2
2017-03-03Add test for commentsLibravatar Dirkjan Ochtman1-1/+1
2017-03-03Discard trailing newlines from templates by defaultLibravatar Dirkjan Ochtman4-14/+14
This matches Jinja's behavior, and seems sensible.
2017-02-19Add basic test for loop variablesLibravatar Dirkjan Ochtman1-1/+1
2017-02-18Add test for handling Option types (with method calls)Libravatar Dirkjan Ochtman1-0/+15
2017-02-18Add test for format filterLibravatar Dirkjan Ochtman1-0/+13
2017-02-18Add test for attribute supportLibravatar Dirkjan Ochtman1-0/+17
2017-02-17Add tests for more binary operatorsLibravatar Dirkjan Ochtman1-1/+1
2017-02-17Split comparison tests from other operatorsLibravatar Dirkjan Ochtman1-1/+16
2017-02-13Implement support for mul, div, mod operatorsLibravatar Dirkjan Ochtman1-1/+1
2017-02-13Rename comparison tests to be about any operatorsLibravatar Dirkjan Ochtman1-4/+4
2017-02-12Test support for variables in inherited templatesLibravatar Dirkjan Ochtman1-7/+9
2017-02-12Explicitly pass trait implementation to top-level base template methodLibravatar Dirkjan Ochtman1-2/+4
This requires a base template struct to be a member of the derived template's context, but allows the base template to access base template fields.
2017-02-12Add test for using base template directlyLibravatar Dirkjan Ochtman1-0/+6
2017-02-05Implement basic support for template inheritanceLibravatar Dirkjan Ochtman1-0/+19
2017-02-05Add test for string literalsLibravatar Dirkjan Ochtman1-0/+11
2017-02-04Add tests for all 6 comparison operatorsLibravatar Dirkjan Ochtman1-5/+5
2017-02-04Add test for == operatorLibravatar Dirkjan Ochtman1-0/+19
2017-02-04Use &str instead of String for test casesLibravatar Dirkjan Ochtman1-6/+6
2017-02-04Add basic support for loopsLibravatar Dirkjan Ochtman1-0/+15
2017-02-02Remove unneeded feature(proc_macro) annotationLibravatar Dirkjan Ochtman2-4/+0
2017-01-12Use 'else if' instead of 'elif' to align more with RustLibravatar Dirkjan Ochtman1-4/+4
2017-01-07Add test for elif blocksLibravatar Dirkjan Ochtman1-0/+14