Both in SDK 6.4.2 and 7.1.0 the following tests should fail (throw an AssertException) but they PASS:
(:test) function barAssertTest(logger as Logger) as Boolean { var expected = "FOO"; var actual = "BAR"; Test.assert(expected.equals(actual)); return true; } (:test) function barEqualTest(logger as Logger) as Boolean { var expected = "FOO"; var actual = "BAR"; Test.assertEqual(expected, actual); return true; } (:test) function barEqualMessageTest(logger as Logger) as Boolean { var expected = "FOO"; var actual = "BAR"; Test.assertEqualMessage(expected, actual, "expected: " + expected + ", actual: " + actual + "."); return true; }
I run the tests from VSC on fr955 using the following configuration in launch.json:
{ "type": "monkeyc", "request": "launch", "name": "Run Tests", "runTests": true, "device": "${command:GetTargetDevice}" },
First I almost opened a bug report, but this is so huge, I'm sure the problem is in something/somehow I do. Or is it?