def test_add_subclass():
    a = IntSet(())
    with pytest.raises(TypeError):
        a.add("s")
def test_add(s, a, ans):
    c = IntSet(s)
    c.add(a)
    assert (str(c) == ans and isinstance(c, IntSet)), \
        f"Expected set of {ans} but got {c}"