Manually merge radarhere's additional tests

This commit is contained in:
Ben Rudiak-Gould 2022-05-03 13:53:50 -07:00
parent 88f46f3c99
commit 48f763a378

View File

@ -28,8 +28,11 @@ def test_sanity():
im.point(lambda x: (2 + x) / 3) im.point(lambda x: (2 + x) / 3)
im.point(lambda x: 0.5) im.point(lambda x: 0.5)
im.point(lambda x: x / 1) im.point(lambda x: x / 1)
im.point(lambda x: x + x)
with pytest.raises(TypeError): with pytest.raises(TypeError):
im.point(lambda x: x * x) im.point(lambda x: x * x)
with pytest.raises(TypeError):
im.point(lambda x: x / x)
with pytest.raises(TypeError): with pytest.raises(TypeError):
im.point(lambda x: 1 / x) im.point(lambda x: 1 / x)
with pytest.raises(TypeError): with pytest.raises(TypeError):