use toast_api::deepseek::{DeepSeekPOW, PowChallenge};
use serde_json::json;

#[test]
fn test_debug_pow_high_difficulty() {
    // Test with high difficulty to see debug output
    let challenge_json = json!({
        "algorithm": "sha3_256",
        "challenge": "test_challenge",
        "salt": "test_salt",
        "difficulty": 2.5,  // High difficulty - 20 zero bits
        "expire_at": 1735689600_u64,
        "signature": "test_signature",
        "target_path": "/api/v0/chat/completion"  
    });
    
    let challenge: PowChallenge = serde_json::from_value(challenge_json).unwrap();
    let pow_solver = DeepSeekPOW::new().unwrap();
    
    println!("Testing high difficulty POW solver...");
    let result = pow_solver.solve_challenge(&challenge);
    println!("High difficulty test result: {:?}", result.is_ok());
    
    assert!(result.is_ok(), "Should handle high difficulty gracefully");
}
