"""Tests for the package initialization"""

import zsz_package


def test_version():
    """Test that version is defined."""
    assert hasattr(zsz_package, "__version__")
    assert isinstance(zsz_package.__version__, str)
    assert zsz_package.__version__ == "0.1.0"


def test_author():
    """Test that author is defined."""
    assert hasattr(zsz_package, "__author__")
    assert isinstance(zsz_package.__author__, str)


def test_exports():
    """Test that expected classes and functions are exported."""
    assert hasattr(zsz_package, "Calculator")
    assert hasattr(zsz_package, "hello")
    assert hasattr(zsz_package, "greet")


def test_all():
    """Test __all__ contains expected exports."""
    assert hasattr(zsz_package, "__all__")
    assert "Calculator" in zsz_package.__all__
    assert "hello" in zsz_package.__all__
    assert "greet" in zsz_package.__all__
