Get buffer tests passing after switching to byte coordinates

This commit is contained in:
Max Brunsfeld 2021-05-17 13:21:49 -07:00 committed by Antonio Scandurra
parent f7691fc00c
commit 72b98ad688
8 changed files with 308 additions and 422 deletions

View file

@ -1,5 +1,5 @@
use rand::prelude::*;
use std::{cmp::Ordering, ops::Range};
use std::cmp::Ordering;
pub fn post_inc(value: &mut usize) -> usize {
let prev = *value;
@ -33,6 +33,7 @@ where
pub struct RandomCharIter<T: Rng>(T);
impl<T: Rng> RandomCharIter<T> {
#[cfg(test)]
pub fn new(rng: T) -> Self {
Self(rng)
}