Albert Chu
f1b178d25e
Boolean precedence unit tests
2025-03-17 14:08:44 -06:00
Albert Chu
1ae2ff103e
Added more non-parity unit tests
2025-03-13 16:41:17 -06:00
Albert Chu
6148604320
Added another failing unit test for behavior in main
2025-03-13 13:26:03 -06:00
Albert Chu
e6e8221c78
Fixed lax parsing test case
2025-03-13 10:53:24 -06:00
Albert Chu
484f016e1b
Added failing unit test that passes in main
2025-03-12 19:23:18 -06:00
Albert Chu
4b57b2bbd9
Reintroduced broken conditional operators behaviour present in liquid main
2025-03-12 14:08:45 -06:00
Albert Chu
430794dd5a
Added test for operator reading bug
2025-03-11 17:00:57 -06:00
Guilherme Carreiro and Albert Chu
51a05c2781
Blank parity
2025-03-10 21:20:44 -06:00
Guilherme Carreiro and Albert Chu
263a73bd81
Remove 'assert_parity_todo!'
2025-03-10 21:20:44 -06:00
Guilherme Carreiro and Albert Chu
9e6b628a68
* Introduce support for literal comparisons (e.g., {{ 'hello' == 'hello' }})
...
* Evaluate expressions as truthy/falsy to unlock scenarios, such as `<div class="{{ disabled and "modal--disabled" }}">`
* Add additional scenarios to the expression test suite
* Simplify `LogicalExpression`
2025-03-10 21:20:44 -06:00
Albert Chu
b31f24bdf0
More boolean unit tests and enabled more existing parity cases
2025-03-10 21:20:44 -06:00
Albert Chu
b57f4fcbcb
Support usecase where a nil variable value is used in a logical expression
2025-03-10 21:20:43 -06:00
Guilherme Carreiro and Albert Chu
26ccec12ab
* Move expression handling from variable.rb to expression.rb
...
* Update test suite to validate parity
* Remove parentheses handling
* Split boolean into comparison and logical expressions
2025-03-10 21:20:43 -06:00
Albert Chu
03feea967b
Added a lot more boolean unit tests
2025-03-10 21:20:43 -06:00
Albert Chu
f32c0fb4fb
TDD: Improved unit tests in boolean_unit_test.rb
...
Added tests for existing usage cases to avoid breaking important logic when introducing changes in subsequent commits.
2025-03-10 21:20:42 -06:00
Albert Chu
b036feb20a
Removed infix operators from this PR
2025-03-10 21:20:42 -06:00
Albert Chu
5782a9e1d7
TDD: Unit tests for new liquid syntax
2025-03-10 21:20:42 -06:00