hyperskill / hs-test

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

All class membes is equals to null when generating tests. #21

Closed aaaaaa2493 closed 5 years ago

aaaaaa2493 commented 5 years ago

Example:

// TODO: why if this field in not static then it is null, not String[]?
static final String[] inputs = new String[] {
    "1 1", "1 2", "1 3",
    "2 1", "2 2", "2 3",
    "3 1", "3 2", "3 3"
};

This happens because tests are generated in constructor when no member fields initialized