mustache/spec — Issue #30: Test for "Interpolation - Multiple Calls" should be implementation-independent
Author: cjerdonek
Created: 2012-01-02 20:40:15+00:00
State: open

I ran into this issue in the process of refactoring. The ["Interpolation - Multiple Calls"](https://github.com/mustache/spec/blob/9b1bc7ad19247e9671304af02078f2ce30132665/specs/~lambdas.yml#L56) test is currently written in a way that assumes tags are evaluated left to right:

template: '{{lambda}} == {{{lambda}}} == {{lambda}}'
expected: '1 == 2 == 3'

The test should probably be rewritten to be implementation-independent (unless there is a left-right requirement that I'm not aware of). If there is a left-right requirement, it is still probably better to rewrite so that the test is more specific and not testing two unrelated things.