duster/js/test_cases/helpers_eq
Tom Alexander 865cba6f4e
Add a test proving that renamed variables are still equal, so its not just based on path.
2020-06-07 01:15:45 -04:00
..
README.md Add tests for copied values. 2020-05-16 14:48:04 -04:00
input1.json Add tests for copied values. 2020-05-16 14:48:04 -04:00
main.dust Add a test proving that renamed variables are still equal, so its not just based on path. 2020-06-07 01:15:45 -04:00

README.md

Without a key parameter, neither the main block nor the else block is rendered.

Literal values work in both keys and values.

Can't Walk Theory

Assuming a missing value = cantwalk and a non-existent key = cantwalk then their equality makes sense.

The null tests have proven that absent parameters and missing values do not equal null and therefore it is not just making all falsey values equal.

Non-Scalar Values

For non-scalar values, it seems that dust does mark two values as true if they have the same path, but otherwise they are not equal.