Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin-Ray committed Oct 5, 2024
1 parent f3842de commit f36b7ec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ mod tests {
// nu = 15 | 9.000 MB | 504.351756724s
#[test]
fn we_can_read_and_write_a_file_round_trip() {
let nu_values = vec![4];
let nu_values = vec![1, 2, 4];

// Loop through each nu value
for &nu in &nu_values {
dbg!("\nTesting with nu = {}", nu);
println!("\nTesting with nu = {}", nu);

let start_time = std::time::Instant::now();

Expand Down Expand Up @@ -323,11 +323,11 @@ mod tests {
// Record the file size in bytes
let metadata = std::fs::metadata(file_path).expect("Failed to get file metadata");
let file_size = metadata.len(); // Get the file size in bytes
dbg!("File size for nu = {}: {} bytes", nu, file_size);
println!("File size for nu = {}: {} bytes", nu, file_size);

// Record the time taken and print it
let elapsed_time = start_time.elapsed();
dbg!("Time taken for nu = {}: {:?}", nu, elapsed_time);
println!("Time taken for nu = {}: {:?}", nu, elapsed_time);

// Clean up the test file after the test runs
std::fs::remove_file(file_path).expect("Failed to remove test file");
Expand Down

0 comments on commit f36b7ec

Please sign in to comment.