Skip to content

Commit

Permalink
Added dz_test2 into dz_test.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
humphreylee authored Oct 24, 2024
1 parent b2440d0 commit 177863a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions charming/tests/dz_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,19 @@ mod tests {
// Assert expected output
assert_eq!(dz_out, df_out);
}

#[test]
fn dz_test2() {
// expected output
let df_out = df![
[44056, 81.8, 23968973, "Australia", 2015],
[13334, 76.9, 1376048943, "China", 2015]
];

Check warning on line 34 in charming/tests/dz_test.rs

View workflow job for this annotation

GitHub Actions / Linting and formatting

Diff in /home/runner/work/charming/charming/charming/tests/dz_test.rs

// Call the macro
let dz_out = dz!([44056, 13334], [81.8, 76.9], [23968973, 1376048943], ["Australia", "China"], [2015, 2015]);;

// Assert expected output
assert_eq!(dz_out, df_out);
}
}

0 comments on commit 177863a

Please sign in to comment.