112 Commits (master)

Author SHA1 Message Date
Tom Alexander 34c8d24a69
Adding to the manual array test. 4 years ago
Tom Alexander 894da51916
Adding a manually written filters test for more specific testing.
The generated one is more for brute forcing compliance.
4 years ago
Tom Alexander c81a0c5001
Add tests for the other json types. 4 years ago
Tom Alexander a0136ea62e
Add a generated test invoking all the filters except jp. 4 years ago
Tom Alexander a6641d9c72
Add a template to dump the parameters to a custom helper. 4 years ago
Tom Alexander 5ddeeac966
minor cleanup. 4 years ago
Tom Alexander 52ba4fd0a3
Only run each command once in the compliance test suite. 4 years ago
Tom Alexander a33b46661e
Add a script to run a single test to make development easier since I often want to focus on one test at a time. 4 years ago
Tom Alexander 74c83ef374
Adding a basic dynamic partials test. 4 years ago
Tom Alexander 054480b797
First stab at fixing the error, not a full success. 4 years ago
Tom Alexander ce8b73f87a
Implement less than or equals. 4 years ago
Tom Alexander 30b7324049
Implement less-than. 4 years ago
Tom Alexander 62cd73f9c9
Initial attempt at implementation, tests not working. 4 years ago
Tom Alexander 0cfe67311e
Comment out the unicode literals test because unicode breaks nom.
Will have to write my own parsers to handle unicode.
4 years ago
Tom Alexander 7126e83d9a
Added tests for non-congruous arrays. 4 years ago
Tom Alexander 0f90fa2c7e
Add support for ignoring tests by prefixing their name with an underscore. 4 years ago
Tom Alexander 6758d515f1
Have greater than helper very close to correct. Just need to make it compare arrays of scalars. 4 years ago
Tom Alexander 48e35c54bb
Add tests for less than and less than or equal to. 4 years ago
Tom Alexander 02abee1c53
Add a test for gte. 4 years ago
Tom Alexander 41e4874d75
Add a check to the equality helper to mark identical paths as equal. 4 years ago
Tom Alexander d751df6fd5
Add tests for copied values. 4 years ago
Tom Alexander 6dbeb77a28
Add arrays to all helpers tests. 4 years ago
Tom Alexander 71e6da39ee
Add a test for boolean comparison. 4 years ago
Tom Alexander 8a44bc6fd9
Add greater-than-specific tests to investigate string ordering. 4 years ago
Tom Alexander f390c05a4c
Finished porting over the equality test to greater than. 4 years ago
Tom Alexander 196740ae34
Starting the greater than helper tests. 4 years ago
Tom Alexander 94cedef3ef
Added a test for not equals which is roughly a copy of the equals test. 4 years ago
Tom Alexander c8cf6a78a0
Extending the equality helper test. 4 years ago
Tom Alexander 7a8247f38a
Getting the left and right sides. 4 years ago
Tom Alexander 012028b0bc
Integrate the dustjs official helpers into the test framework. 4 years ago
Tom Alexander 12d8b58961
Added a block inverse register order to test to prove that partial hierarchy matters. 4 years ago
Tom Alexander 5e3b71602f
Seems inline partials do not bubble up to higher templates. 4 years ago
Tom Alexander ec0edac607
Explicitly sort the non-main templates.
We will need this to deterministicly determine if the inline partials are registered in the order that the templates are parsed or the order that the templates are rendered.
4 years ago
Tom Alexander 9a0b28d80d
Adding more tests. 4 years ago
Tom Alexander d93602d686
Add another testing proving that inline partials can occur before the block definition. 4 years ago
Tom Alexander 353a04064e
Adding findings to the README. 4 years ago
Tom Alexander c09bedd94b
Starting a test for blocks and inline partials. 4 years ago
Tom Alexander 97fbde6304
Add a test for partials referencing paths. 4 years ago
Tom Alexander ec321a17ca
Adding a v0 to partial_jump_around_one to prove that the partial parameters are inserted 1 level above the current context. 4 years ago
Tom Alexander 50c03b4f0f
Expanding the partial jump around tests. 4 years ago
Tom Alexander f47b91f8e7
Starting a more complicated test for partials to investigate scoping. 4 years ago
Tom Alexander 7087157ed3
Add partial test for walking up context vs parameters 4 years ago
Tom Alexander 0fcb70927c
Add an initial test of partial parameters 4 years ago
Tom Alexander b45688351e
Rendering a reference appears to do a truthiness check because false renders an empty string despite rendering as "false" in an array element. 4 years ago
Tom Alexander 0f47000a9b
Add support for the exists tag. 4 years ago
Tom Alexander c3fe7b47af
Added a test for backtracking.
DustJS appears to not do any backtracking.
4 years ago
Tom Alexander 2b6c3990a9
Add test for a multi-step walk into a parent context.
This test proves that the dynamic scoping does not add the intermediate steps when doing a multi-step walk.
4 years ago
Tom Alexander 45facfed0d
Improve the walk up test to prove that DustJS is doing dynamic scoping, not lexical scoping. 4 years ago
Tom Alexander 9adb88d132
Added a test case for walking up the context 4 years ago
Tom Alexander e957caf386
Render the else block in sections if the path does not exist or if the path can't be walked.
This fixes all existing compliance tests.
4 years ago
Tom Alexander 31029bf50b
Add a test for whitespace inside the template.
This is similar to the surrounding whitespace test but for whitespace inside of a tag as opposed to before/after the first element of the template.
4 years ago
Tom Alexander 3cfc294e93
Add an array-context test case for the sections test 4 years ago
Tom Alexander f0a69d12b9
First attempt at a section render function.
Running into an issue with generics vs dynamic references.
4 years ago
Tom Alexander 41ad6179d1
Parse self-references and add a test for sections. 4 years ago
Tom Alexander 71181fbd9a
Add a test case for comments 4 years ago
Tom Alexander d813a66610
Add test for booleans and null 4 years ago
Tom Alexander 7a28e6a9d4
Handle rendering json arrays and objects 4 years ago
Tom Alexander 24d2c1831c
Handle missing references 4 years ago
Tom Alexander 4856fb6d11
Support passing args to the dockerized test runner 4 years ago
Tom Alexander 8435028a55
Dockerized tests are now working and added a flag to toggle showing the test case diff. 4 years ago
Tom Alexander aa7155d467
Correctly counting test failures 4 years ago
Tom Alexander db575d145e
Initial attempt at docker compliance tests. 4 years ago