Finished porting over the equality test to greater than.
This commit is contained in:
parent
196740ae34
commit
f390c05a4c
@ -15,4 +15,4 @@ beta is {beta}{~n}
|
||||
{@eq key="master" value="master"}"master" is equal to "master"{:else}"master" does not equal "master"{/eq}{~n}
|
||||
{@eq key=null}null equals a missing value{:else}null does not equal a missing value{/eq}{~n}
|
||||
{@eq key=null value=gamma}null equals a non-existent value{:else}null does not equal a non-existent value{/eq}{~n}
|
||||
{@eq}no parameters is true{:else}no parameters if false{/eq}{~n}
|
||||
{@eq}no parameters is true{:else}no parameters is false{/eq}{~n}
|
||||
|
@ -1,3 +1,5 @@
|
||||
Since "master" is greater than "7", dust is probably ordering based on either alphabetic sorting or ascii values.
|
||||
|
||||
All comparisons between non-matching types (for example, int vs string) appear to render the else block.
|
||||
|
||||
Greater than follows the same pattern for not rendering when key is omitted or null.
|
||||
|
@ -9,13 +9,12 @@ beta is {beta}{~n}
|
||||
{@gt key=int value=7}int is greater than 7{:else}int is less than or equal to 7{/gt}{~n}
|
||||
{@gt key=int value=6}int is greater than 6{:else}int is less than or equal to 6{/gt}{~n}
|
||||
{@gt key=alpha value=beta}alpha is greater than beta{:else}alpha is less than or equal to beta{/gt}{~n}
|
||||
{!
|
||||
{@gt value=beta}missing key is true{:else}missing key is false{/gt}{~n}
|
||||
{@gt value=gamma}missing key and non-existent value is true{:else}missing key and non-existent value is false{/gt}{~n}
|
||||
{@gt key=alpha}missing value is true{:else}missing value is false{/gt}{~n}
|
||||
{@gt key=gamma}missing value and non-existent key is true{:else}missing value and non-existent key is false{/gt}{~n}
|
||||
{@gt key="master" value="master"}"master" is equal to "master"{:else}"master" does not equal "master"{/gt}{~n}
|
||||
{@gt key=null}null equals a missing value{:else}null does not equal a missing value{/gt}{~n}
|
||||
{@gt key=null value=gamma}null equals a non-existent value{:else}null does not equal a non-existent value{/gt}{~n}
|
||||
{@gt}no parameters is true{:else}no parameters if false{/gt}{~n}
|
||||
!}
|
||||
{@gt key="master" value="master"}"master" is greater than "master"{:else}"master" is less than or equal to "master"{/gt}{~n}
|
||||
{@gt key=null}null is greater than a missing value{:else}null is less than or equal to a missing value{/gt}{~n}
|
||||
{@gt key=null value=gamma}null is greater than a non-existent value{:else}null is less than or equal to a non-existent value{/gt}{~n}
|
||||
{@gt}no parameters is true{:else}no parameters is false{/gt}{~n}
|
||||
|
||||
|
@ -15,4 +15,4 @@ beta is {beta}{~n}
|
||||
{@ne key="master" value="master"}"master" does not equal "master"{:else}"master" is equal to "master"{/ne}{~n}
|
||||
{@ne key=null}null does not equal a missing value{:else}null equals a missing value{/ne}{~n}
|
||||
{@ne key=null value=gamma}null does not equal non-existent value{:else}null equals a non-existent value{/ne}{~n}
|
||||
{@ne}no parameters is true{:else}no parameters if false{/ne}{~n}
|
||||
{@ne}no parameters is true{:else}no parameters is false{/ne}{~n}
|
||||
|
Loading…
Reference in New Issue
Block a user