Skip to content

Commit

Permalink
Fix reading test
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed May 14, 2020
1 parent 2bf186e commit 4bc615e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/reading_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ TEST_CASE( "reasons for not being able to read", "[reading][reasons]" )
}

THEN( "you cannot read without enough skill to understand the book" ) {
dummy.set_skill_level( skill_id( "cooking" ), 7 );
dummy.set_skill_level( skill_id( "chemistry" ), 5 );

CHECK( dummy.get_book_reader( alpha, reasons ) == nullptr );
expect_reasons = { "cooking 8 needed to understand. You have 7" };
expect_reasons = { "chemistry 6 needed to understand. You have 5" };
CHECK( reasons == expect_reasons );
}

Expand Down

0 comments on commit 4bc615e

Please sign in to comment.