#!/bin/bash

# Objective-C Test Script

SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
cd "$SCRIPT_DIR"

echo "=== Objective-C Test ==="
echo ""

# Testa pi-beräkning med olika antal decimaler
for decimals in 1 2 5 10 100; do
  result=$(./bin/print_hej $decimals 2>/dev/null)
  if [ $? -eq 0 ]; then
    echo "✓ $decimals decimaler: $result"
  else
    echo "✗ $decimals decimaler misslyckades"
  fi
done