It suddenly gave me a complier error about assert not being defined, so I just included it, which fixed it