Skip to content

Commit

Permalink
added in file type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISCARLON committed Oct 3, 2024
1 parent afa47a2 commit eb2c795
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/duckdb_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ fn test_file_path(file_name: &str) -> String {
.to_string()
}

#[test]
fn test_process_invalid_file() {
let file_path = test_file_path("invalid.txt");
assert!(process_file(&file_path).is_err());
}

#[test]
fn test_process_geojson() {
let file_path = test_file_path("hotosm_twn_populated_places_points_geojson.geojson");
Expand Down Expand Up @@ -46,9 +52,3 @@ fn test_process_geopackage() {
// let file_path = test_file_path("your_parquet_file.parquet");
// assert!(process_file(&file_path).is_ok());
// }

#[test]
fn test_process_invalid_file() {
let file_path = test_file_path("invalid.txt");
assert!(process_file(&file_path).is_err());
}

0 comments on commit eb2c795

Please sign in to comment.