From eb2c7955ae218bf22a6f2644115b5b08435abab9 Mon Sep 17 00:00:00 2001 From: Chris Carlon Date: Thu, 3 Oct 2024 16:09:26 +0100 Subject: [PATCH] added in file type tests --- tests/duckdb_tests.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/duckdb_tests.rs b/tests/duckdb_tests.rs index f636060..d737a9c 100644 --- a/tests/duckdb_tests.rs +++ b/tests/duckdb_tests.rs @@ -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"); @@ -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()); -}