"""
Test script for the minimal GSPy interface
"""
import gspy_test

def test_interface():
    """Test the GSPy interface with various input values"""
    
    print("Testing GSPy minimal interface...")
    print("=" * 50)
    
    # Test cases: different recharge rates
    test_cases = [0.0, 0.025, 0.05, 0.075, 0.1, 0.15]
    
    for recharge in test_cases:
        result = gspy_test.run_modflow_step(recharge)
        flow_rate = result[0]
        print(f"Recharge: {recharge:6.3f} m/day → Return Flow: {flow_rate:6.3f} m³/s")
    
    print("=" * 50)
    print("Target case (0.075 m/day):")
    target_result = gspy_test.run_modflow_step(0.075)
    print(f"Expected ~0.452 m³/s, Got: {target_result[0]:.6f} m³/s")
    
    if abs(target_result[0] - 0.452) < 0.01:
        print("✓ Target flow rate achieved!")
    else:
        print("⚠ Flow rate differs from target")

if __name__ == "__main__":
    test_interface()