Add some property testing, and fix a bug it found.

This commit is contained in:
2018-11-06 21:53:47 -08:00
parent ccde640f99
commit de5ff87f9e
6 changed files with 75 additions and 25 deletions

View File

@@ -26,6 +26,8 @@ mod shift;
#[macro_use]
mod subtraction;
#[cfg(test)]
use quickcheck::{Arbitrary,Gen};
use std::cmp::{Ord,Ordering,PartialOrd};
use std::fmt;
use std::ops::{Add,AddAssign};