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

Add file support in Expectation system #87

Closed aaaaaa2493 closed 4 years ago

aaaaaa2493 commented 4 years ago

Possibly using "asFile()" + "asText()" methods after "expect( ... )". Do not need to break compatibility - assume that if neither of these methods presented then threat string as text.

aaaaaa2493 commented 4 years ago

Use expect("content.txt").fromFile(). ... to check file's content