Tom Alexander
1ad9753845
Add an ignored test for type casting.
...
I think in order to support type casting in a generic fashion so that custom non-json types can be used, I'll need to push the implementation of helpers off into the traits instead of handling it in the renderer. This is a larger undertaking than I was planning on starting at this very moment, so I'm going to leave this test disabled and move on to a couple smaller tasks I wanted to knock out before starting implementation on custom helpers.
2020-05-24 13:05:34 -04:00
Tom Alexander
533ea96d4f
Add a test for literal string blocks.
2020-05-23 23:32:13 -04:00
Tom Alexander
6e8c7621f1
It seems paths with a leading dot restrict the scope the below the current context.
2020-05-23 23:06:04 -04:00
Tom Alexander
da4ef1a8c8
Remove the headers to the dust helper tests because they were misleading.
2020-05-23 22:41:12 -04:00
Tom Alexander
96e8dd63a7
Dustjs appears to have an output limit of 65536 characters which was breaking the string test, so I split it in two.
2020-05-23 22:23:54 -04:00
Tom Alexander
71378ed37d
Fix a bug w.r.t. quoting and escaping boolean values with filters.
2020-05-23 19:34:38 -04:00
Tom Alexander
bd7866e973
Implement encodeURIComponent filter.
2020-05-23 19:10:02 -04:00
Tom Alexander
46d4f50410
Implement the encodeURI filter.
2020-05-23 19:06:09 -04:00
Tom Alexander
8d2728a767
Implement javascript string escaping.
2020-05-23 18:40:09 -04:00
Tom Alexander
f3fef17d4b
I was wrong, html escape filter is appended even if an html escape filter is already there.
2020-05-23 18:18:59 -04:00
Tom Alexander
e22bffd2ba
Implemented the json stringify and parse filters.
2020-05-23 18:14:23 -04:00
Tom Alexander
624c83b680
Automatically appending the html escape filter on the renderer side.
2020-05-23 17:57:19 -04:00
Tom Alexander
6a9fe9e1be
Beginning of applying filters for json types. Currently only supports html escaping.
2020-05-23 17:23:48 -04:00
Tom Alexander
34c8d24a69
Adding to the manual array test.
2020-05-23 16:07:24 -04:00
Tom Alexander
894da51916
Adding a manually written filters test for more specific testing.
...
The generated one is more for brute forcing compliance.
2020-05-23 16:04:36 -04:00
Tom Alexander
c81a0c5001
Add tests for the other json types.
2020-05-23 15:58:12 -04:00
Tom Alexander
a0136ea62e
Add a generated test invoking all the filters except jp.
2020-05-23 15:52:31 -04:00
Tom Alexander
a6641d9c72
Add a template to dump the parameters to a custom helper.
2020-05-23 14:28:21 -04:00
Tom Alexander
5ddeeac966
minor cleanup.
2020-05-17 21:21:26 -04:00
Tom Alexander
52ba4fd0a3
Only run each command once in the compliance test suite.
2020-05-17 16:40:23 -04:00
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.
2020-05-17 16:32:16 -04:00
Tom Alexander
74c83ef374
Adding a basic dynamic partials test.
2020-05-17 16:07:11 -04:00
Tom Alexander
054480b797
First stab at fixing the error, not a full success.
2020-05-16 21:30:51 -04:00
Tom Alexander
ce8b73f87a
Implement less than or equals.
2020-05-16 19:06:40 -04:00
Tom Alexander
30b7324049
Implement less-than.
2020-05-16 19:05:03 -04:00
Tom Alexander
62cd73f9c9
Initial attempt at implementation, tests not working.
2020-05-16 18:28:23 -04:00
Tom Alexander
0cfe67311e
Comment out the unicode literals test because unicode breaks nom.
...
Will have to write my own parsers to handle unicode.
2020-05-16 18:21:10 -04:00
Tom Alexander
7126e83d9a
Added tests for non-congruous arrays.
2020-05-16 17:53:57 -04:00
Tom Alexander
0f90fa2c7e
Add support for ignoring tests by prefixing their name with an underscore.
2020-05-16 16:46:39 -04:00
Tom Alexander
6758d515f1
Have greater than helper very close to correct. Just need to make it compare arrays of scalars.
2020-05-16 16:24:36 -04:00
Tom Alexander
48e35c54bb
Add tests for less than and less than or equal to.
2020-05-16 15:51:40 -04:00
Tom Alexander
02abee1c53
Add a test for gte.
2020-05-16 15:45:57 -04:00
Tom Alexander
41e4874d75
Add a check to the equality helper to mark identical paths as equal.
2020-05-16 15:22:48 -04:00
Tom Alexander
d751df6fd5
Add tests for copied values.
2020-05-16 14:48:04 -04:00
Tom Alexander
6dbeb77a28
Add arrays to all helpers tests.
2020-05-16 14:19:56 -04:00
Tom Alexander
71e6da39ee
Add a test for boolean comparison.
2020-05-16 13:46:31 -04:00
Tom Alexander
8a44bc6fd9
Add greater-than-specific tests to investigate string ordering.
2020-05-16 13:06:52 -04:00
Tom Alexander
f390c05a4c
Finished porting over the equality test to greater than.
2020-05-16 13:00:09 -04:00
Tom Alexander
196740ae34
Starting the greater than helper tests.
2020-05-16 12:51:27 -04:00
Tom Alexander
94cedef3ef
Added a test for not equals which is roughly a copy of the equals test.
2020-05-16 12:23:08 -04:00
Tom Alexander
c8cf6a78a0
Extending the equality helper test.
2020-05-10 14:33:17 -04:00
Tom Alexander
7a8247f38a
Getting the left and right sides.
2020-05-10 14:22:59 -04:00
Tom Alexander
012028b0bc
Integrate the dustjs official helpers into the test framework.
2020-05-10 13:43:32 -04:00
Tom Alexander
12d8b58961
Added a block inverse register order to test to prove that partial hierarchy matters.
2020-05-09 16:16:42 -04:00
Tom Alexander
5e3b71602f
Seems inline partials do not bubble up to higher templates.
2020-05-09 16:06:54 -04:00
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.
2020-05-09 15:59:33 -04:00
Tom Alexander
9a0b28d80d
Adding more tests.
2020-05-09 15:49:49 -04:00
Tom Alexander
d93602d686
Add another testing proving that inline partials can occur before the block definition.
2020-05-09 15:40:29 -04:00
Tom Alexander
353a04064e
Adding findings to the README.
2020-05-09 15:39:38 -04:00
Tom Alexander
c09bedd94b
Starting a test for blocks and inline partials.
2020-05-09 15:38:15 -04:00