You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tom Alexander da4ef1a8c8
Remove the headers to the dust helper tests because they were misleading.
4 years ago
..
README.md Added tests for non-congruous arrays. 4 years ago
input1.json Added tests for non-congruous arrays. 4 years ago
main.dust Remove the headers to the dust helper tests because they were misleading. 4 years ago

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.

Longer arrays are greater than shorter arrays if all preceding values match.

Theory for comparing arrays: Compare the values, if theres any mismatched types then take the same action you would for non-matching scalar types.

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