"""Unit tests for core business logic (no Typer)."""

from __future__ import annotations

from {{ cookiecutter.project_name }}.core import __version__, greet


def test_greet_name() -> None:
    """greet returns a personalized greeting."""
    assert greet("Alice") == "Hello, Alice!"


def test_greet_empty() -> None:
    """greet with empty name falls back to stranger."""
    assert greet("") == "Hello, stranger!"


def test_version_is_string() -> None:
    """__version__ is a non-empty string."""
    assert isinstance(__version__, str)
    assert __version__