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 e54e20d254
Add a test case for casting booleans to numbers.
4 years ago
..
README.md Add tests for copied values. 4 years ago
input1.json Add tests for copied values. 4 years ago
main.dust Add a test case for casting booleans to numbers. 4 years ago

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.