We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6539211 commit 38c5766Copy full SHA for 38c5766
tests/generators/unittest_javascript.js
@@ -86,6 +86,8 @@ Blockly.JavaScript['unittest_main'].defineAssert_ = function(block) {
86
' function equals(a, b) {',
87
' if (a === b) {',
88
' return true;',
89
+ ' } else if ((typeof a == "number") && (typeof b == "number") && (a.toPrecision(15) == b.toPrecision(15))) {',
90
+ ' return true;',
91
' } else if (a instanceof Array && b instanceof Array) {',
92
' if (a.length != b.length) {',
93
' return false;',
0 commit comments