Neil Fraser
5612e13824
fix: Remove float() coercion in Python loops ( #6259 )
...
Coercion to a float is a very JavaScript thing to do, Python is not JavaScript.
From this discussion:
https://groups.google.com/g/blockly/c/OF_j9rKQgpI
2022-07-06 08:46:10 -07:00
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
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
fcc3a09661
Fix python loop ( #4007 )
...
* Fix code generation for python controls_for
* Update python golden file.
2020-06-30 11:35:48 -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
RoboErikG
e62c2a3f6b
Remove multi-line comments to avoid escaping ( #3231 )
...
Fixes #3230 by removing multi-line comments for procedures.
2019-10-14 10:40:22 -07:00
Rachel Fenichel
6202919272
Make generator tests compare results against golden files; add golden files.
2018-11-09 13:22:34 -08:00