rooibos
rooibos copied to clipboard
BrighterScript template strings silently fail in annotations
I wanted to use a BrighterScript template string in a @params
annotation for a test I was writing, but found that when I used the template string within the annotation, the test run unexpectedly hung on the device and never completed or exited with an error.
Test case to reproduce:
namespace Testing.TemplateStringsInAnnotations
@suite
class TestCase extends Rooibos.BaseTestSuite
private data as object
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@describe("test case")
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@it("should be able to test BrighterScript template strings")
' this works fine, of course...
@params("foo")
' ... but this one doesn't, and silently fails while the tests run on-device.
@params(`foo`)
function _(input as string)
m.assertEqual(input, "foo")
end function
end class
end namespace