Closed JFronny closed 6 months ago
This PR lacks tests
What copyright owner should be specified in the license header of the stream class?
What copyright owner should be specified in the license header of the stream class?
You can specify your own name. Or you can also implement stream with inner class.
This PR lacks tests
I have implemented a simple test. How would I go about running it? The documentation mentions setup steps, but not how I would actually run the tests. (gradlew test
causes a bunch of ExceptionInInitializerError
s, so I assume that using that is not intended)
You should follow instructions in https://teavm.org/docs/contributing/testing.html and then run tests using your favourite way. You can just launch ./gradlew test
from console. Personally, I use IDEA for development and just press launch button across test method.
The issue seems to be that the test runner expects Google Chrome to be installed with a specific name and crashes when it can't find it. Using -Pteavm.tests.browser=browser
and manually opening the browser works, though.
Simple implementation inspired by toCharArray. Seems to work fine from my testing.