#!/usr/bin/env python3
"""Test ASCII Art MCP Server"""
import sys
sys.path.insert(0, '.')
from server import create_ascii_box, create_ascii_table, list_ascii_styles
print("\n" + "="*70)
print("ASCII Art MCP Server - Test Suite")
print("="*70)
# Test 1: Simple box
print("\n1. Simple Light Box")
box1 = create_ascii_box(width=50, height=10, title="Welcome", line_style='light')
print(box1)
# Test 2: Heavy table
print("\n2. Heavy Border Table")
table1 = create_ascii_table(
headers=["Feature", "Status"],
rows=[
["Functor Composition", "✓ Working"],
["Zero Dependencies", "✓ Working"],
["Instant Output", "✓ Working"]
],
line_style='heavy'
)
print(table1)
# Test 3: Double formal box
print("\n3. Formal Double Box with Shading")
box2 = create_ascii_box(
width=60, height=12,
title="Production Metrics",
line_style='double',
shading_palette='blocks',
shading_direction='radial',
contrast=0.8
)
print(box2)
# Test 4: Rounded friendly
print("\n4. Friendly Rounded Box")
box3 = create_ascii_box(
width=40, height=8,
title="Tips",
line_style='rounded',
shading_palette='dots',
contrast=0.5
)
print(box3)
# Test 5: List styles
print("\n5. Available Styles")
styles = list_ascii_styles()
print("\nBox Styles:")
for name, info in styles['box_styles'].items():
print(f" {name}: {info['sample_chars']} - {info['intentionality']}")
print("\n" + "="*70)
print("✅ ALL TESTS PASSED")
print("="*70)
print("\nReady to deploy:")
print(" fastmcp deploy")
print()