for i in 0..start / COIN_VALUE { writeln!(tsv, "{}", i * COIN_VALUE).expect("writing to string should succeed"); } let start = Instant::now(); assert_eq!( sats_from_tsv(utxos, &tsv) .unwrap() .into_iter() .map(|(outpoint, s)| (outpoint, s.parse().unwrap())) .collect::>(), results ); assert!(Instant::now() - start < Duration::from_secs(10)); } }