hyperskill / hs-test

A framework that simplifies testing educational projects for Hyperskill. It is built on top of JUnit.
31 stars 10 forks source link

static Scanner + any .hasNext* method causes erorrs #55

Closed aaaaaa2493 closed 4 years ago

aaaaaa2493 commented 4 years ago

Scanner remembers that there aren't any numbers in the input and in the second test provides no input, but should provide correct input.

aaaaaa2493 commented 4 years ago

See this test that is failing: https://github.com/hyperskill/hs-test/blob/dev/src/test/java/outcomes/TestStaticScannerHasNext.java

aaaaaa2493 commented 4 years ago

Fixed by #56