forked from ModelEarth/team
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_different_prefs.rs
More file actions
27 lines (24 loc) · 967 Bytes
/
test_different_prefs.rs
File metadata and controls
27 lines (24 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Test different preference combinations
mod recommendations;
fn main() {
let excel_path = "preferences/projects/DFC-ActiveProjects.xlsx";
let test_cases = vec![
vec!["Agriculture".to_string()],
vec!["Healthcare Access".to_string()],
vec!["Education".to_string()],
vec!["Rural Development".to_string()],
vec!["Invalid Preference".to_string()],
];
for (i, preferences) in test_cases.iter().enumerate() {
println!("\n🔍 Test Case {}: {:?}", i + 1, preferences);
match recommendations::get_recommendations(preferences, excel_path) {
Ok(projects) => {
println!("✅ Found {} matching projects", projects.len());
for project in projects.iter().take(2) {
println!(" - {}: {}", project.project_name, project.department);
}
}
Err(e) => println!("❌ Error: {}", e),
}
}
}