Skip to content

Commit

Permalink
fix incorrect uniform tracks test
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulk29 committed Jan 2, 2024
1 parent e90727c commit 557989b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion substrate/src/layout/tracks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ mod tests {
assert_eq!(tracks.to_track_idx(-550, RoundingMode::Down), -2);
assert_eq!(tracks.to_track_idx(-200, RoundingMode::Down), -1);
assert_eq!(tracks.to_track_idx(-20, RoundingMode::Up), 0);
assert_eq!(tracks.to_track_idx(-550, RoundingMode::Up), -1);
assert_eq!(tracks.to_track_idx(-530, RoundingMode::Up), -1);
assert_eq!(tracks.to_track_idx(-550, RoundingMode::Up), -2);
}
}

0 comments on commit 557989b

Please sign in to comment.