import pytest
from thangdemo import add, mean

def test_add():
    assert add(2, 3) == 5

def test_mean_basic():
    assert mean([1, 2, 3]) == 2

def test_mean_raises_on_empty():
    with pytest.raises(ValueError):
        mean([])
