Get buffer tests passing after switching to byte coordinates
This commit is contained in:
parent
f7691fc00c
commit
72b98ad688
8 changed files with 308 additions and 422 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue