Test compilation fixes (8 integration test files): 1. Ambiguous float types — added f32/f64 annotations 2. chrono API — replaced with_hour() with date_naive().and_hms_opt() 3. Missing dev-dependencies — added sqlx + base64 4. Generic parse — wrapped f32 comparison in parens 5. Incorrect assertion — 3^5=243 > 100, changed nodes to 1000 CI fixes: 6. Missing benchmark fixtures — created 3 files in fixtures/benchmarks/ 7. clippy absurd_extreme_comparisons — usize >= 0 always true 8. authentik_jwt test — Option<SystemTime> type mismatch 9. http_server tests — removed broken RBAC test module (types deleted) Result: cargo build --all clean, cargo test --all --lib passes
This commit is contained in:
@@ -103,7 +103,7 @@ fn gate_metadata_preservation() {
|
||||
|
||||
// Verify we get a valid OptimizedChunk with proper fields
|
||||
assert!(optimized.original_tokens > 0, "should track original tokens");
|
||||
assert!(optimized.compressed_tokens >= 0, "should track compressed tokens");
|
||||
assert!(optimized.compressed_tokens <= optimized.original_tokens, "compressed should not exceed original");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -122,7 +122,7 @@ fn gate_error_handling_graceful() {
|
||||
match optimizer.optimize(case.as_str()) {
|
||||
Ok(result) => {
|
||||
// Valid compression
|
||||
assert!(result.original_tokens >= 0);
|
||||
assert!(result.original_tokens > 0);
|
||||
}
|
||||
Err(_) => {
|
||||
// Acceptable to fail on edge cases, but should fail gracefully
|
||||
@@ -209,7 +209,7 @@ fn gate_no_regressions_existing_functionality() {
|
||||
|
||||
assert!(!result.compressed.is_empty(), "basic optimization should work");
|
||||
assert!(result.original_tokens > 0, "should track tokens");
|
||||
assert!(result.compressed_tokens >= 0, "should have compressed tokens");
|
||||
assert!(result.compressed_tokens <= result.original_tokens, "compressed should not exceed original");
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user