#[cfg(test)]
mod integration {
use to_binary::BinaryString;
#[test]
fn test_spaces() {
let x: BinaryString = BinaryString::from_hex("FF8628AA").unwrap();
let with_spaces: BinaryString = x.add_spaces().unwrap();
let removed_spaces: BinaryString = with_spaces.remove_spaces();
println!("x: {}", x);
println!("with_spaces : {}", with_spaces);
println!("removed spaces: {}", removed_spaces);
let is_true: bool = with_spaces.assert_binary_whitespace();
assert_eq!(is_true, true);
assert_eq!(x, removed_spaces);
}
}