Neil Fraser
1f6a1bd8d9
chore: Use ES6 template strings in CSS and code generators ( #5902 )
...
* Unindent CSS, save 3 kb of code.
* Convert generator functions to template strings.
This resolves #5761 .
2022-01-28 17:58:43 -08:00
Richard Doherty
a31003fab9
fix(generators): Fix an operator precedence issue in the math_number_property generators to remove extra parentheses ( #5685 )
...
* Fixed issue where the mathIsPrime function inserted extra parenthesis around certain blocks.
* Added tests to generated JS
* Updated generated code in Lua
* Updated Generated code for tests in Dart
* Updated generated code for tests in PHP
* Updated generated code for tests in Python
* Also changed var to const and let.
Co-authored-by: jeremyjacob123 <43049656+jeremyjacob123@users.noreply.github.com >
Co-authored-by: LouisCatala <86700310+LouisCatala@users.noreply.github.com >
Co-authored-by: jeremyjacob123 <43049656+jeremyjacob123@users.noreply.github.com >
2022-01-27 15:54:05 +00:00
Neil Fraser
37a1ee55b8
Remove useless variable declarations in PHP. ( #4849 )
2021-05-27 21:40:04 -07:00
Monica Kozbial
6ec002e3d4
Adding tests for multiline block ( #4317 )
...
* Adding tests for multiline input
2020-09-30 15:20:35 -07:00
Monica Kozbial
81d355f5fa
Fix order errors in text generators ( #4329 )
...
* Fix dart text generator logic
* Fix Javascript text generator logic.
* Fix Lua text generator logic
* Fix php text generator logic
* Fix python text generator logic
* Fix error in substring logic
* Fix unit test block generators
* Update from ORDER_COMMA to ORDER_NONE
* Update golden files
2020-09-30 14:08:45 -07:00
Monica Kozbial
d6abf4798e
Fixing operator precedence in Lua and and adding test. ( #3765 )
...
* Fixing operator precedence in Lua and and adding test.
* Updating golden files.
2020-03-25 14:34:07 -07:00
Neil Fraser
b6947976d7
Fix lint in golden PHP generator.
...
Causing tests to fail.
2019-08-02 11:00:40 -07:00
Rachel Fenichel
6202919272
Make generator tests compare results against golden files; add golden files.
2018-11-09 13:22:34 -08:00