Skip to content

Commit

Permalink
Seek back after writing input
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jul 18, 2016
1 parent 4501b80 commit bd4287a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lm/builder/corpus_count_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ BOOST_AUTO_TEST_CASE(Short) {
// little more loin </s> bar </s> </s>

util::WriteOrThrow(input_file.get(), input, sizeof(input) - 1);
util::SeekOrThrow(input_file.get(), 0);
util::FilePiece input_piece(input_file.release(), "temp file");

util::stream::ChainConfig config;
Expand Down

0 comments on commit bd4287a

Please sign in to comment.