duster/js/test_cases/helpers_gt
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
..
README.md 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
input1.json Add tests for copied values. 2020-05-16 14:48:04 -04:00
main.dust 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

README.md

Based on my tests, it appears dust is sorting based on ascii-table values. This also appears to extend to unicode codepoints based on a symbols test.

Greater than follows the same pattern for not rendering when key is omitted or null.

greater than

All comparisons between non-matching types (for example, int vs string) appear to render the else block.

Comparisons between non-scalar types (like arrays) appears to render the else block

greater than or equals to

All comparisons between non-matching types (for example, int vs string) appear to render the main block.

Comparisons between non-scalar types (like arrays) appears to render the main block

less than

All comparisons between non-matching types (for example, int vs string) appear to render the else block.

Comparisons between non-scalar types (like arrays) appears to render the else block

less than or equal to

All comparisons between non-matching types (for example, int vs string) appear to render the main block.

Comparisons between non-scalar types (like arrays) appears to render the main block