Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrighterScript template strings silently fail in annotations #196

Open
fastfrwrd opened this issue Nov 17, 2022 · 0 comments
Open

BrighterScript template strings silently fail in annotations #196

fastfrwrd opened this issue Nov 17, 2022 · 0 comments

Comments

@fastfrwrd
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant