Skip to content

Commit

Permalink
make 'next iteration' test more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Getreu committed Oct 11, 2018
1 parent 73b3824 commit d936f42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,13 @@ mod tests {


// Simulate next iteration.
start -= WIN_STEP;
let completes_last_str = res.last_str_is_incomplete;

let expected_fc = FindingCollection{ v: vec![
Finding{ filename:None, ptr:WIN_LEN, mission:&MISSIONS.v[0],
s:"\u{2691}TUSH".to_string() },
], completes_last_str: true, last_str_is_incomplete: false};

start -= WIN_STEP;
], completes_last_str: completes_last_str, last_str_is_incomplete: false};

let ms = ScannerState{ offset:start, completes_last_str:true, mission:&MISSIONS.v[0] };

Expand Down

0 comments on commit d936f42

Please sign in to comment.