use crate::config::enhanced_models::{
CategoryWeights, ContentExpectations, EnhancedScoringProfile, ProfileMetadata,
};
use crate::scoring::{ProfileAwareScorer, ProfileCompiler};
use std::collections::HashMap;
#[test]
fn test_phase3_basic_compilation() {
let mut profile = EnhancedScoringProfile::default();
profile.metadata.name = "test_profile".to_string();
profile.category_weights.insert("content".to_string(), 0.4);
profile
.category_weights
.insert("structure".to_string(), 0.2);
profile.category_weights.insert("seo".to_string(), 0.2);
profile
.category_weights
.insert("technical".to_string(), 0.1);
profile
.category_weights
.insert("accessibility".to_string(), 0.1);
let compiler = ProfileCompiler::new();
let result = compiler.compile_profile(&profile);
if let Err(e) = &result {
println!("Compilation error: {:?}", e);
}
assert!(
result.is_ok(),
"Profile compilation should succeed, got error: {:?}",
result.err()
);
let _scorer = ProfileAwareScorer::new();
}
#[test]
fn test_phase3_module_structure() {
use crate::scoring::{
CompiledProfile, ContentValidationResult, ContentValidator, ProfileAwareScorer,
ProfileCompiler, ScoringResult,
};
assert!(true);
}