IDE testing plugin- boolean problem #6370
Replies: 1 comment
-
Posted at 2020-12-15 by @allObjects @kri100s indeed, something with boolean is off... You see the workaround: make Commands for setting and clearing (not the most elegant, but it works). Furthermore, notice:
When you take a look at the plug-in code, you may figure what is wrong with the boolean. Looks to me good what you do and I suspect as well something is broken for setting a boolean variable. - https://github.com/espruino/EspruinoWebIDE/blob/master/js/plugins/testing.js#L62 Attachments: Posted at 2020-12-15 by kri100s Thanks @allObjects for looking into it. Its not a big deal for me since I can just use number instead like you suggested. I wanted to know if its a real issue or just my poor js knowledge. It would be good to let know to whoever is maintaining the plugin. I bet there is an easy fix for it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-12-15 by kri100s
Hi All, I started using testing plugin in the IDE. I found an issue with boolean value setting. It could be my very basic knowledge of JS but here it is.
I am trying to change the value of a boolean variable with a button from the testing plugin. This is the code:
then I run the program and test. After toggling the test button, my_bool variable is still true. Same code works fine with numeric values.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions