Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ideal format
@test_case(Vector3D(0,1,0), Vector3D(0,1,0), 1.0).description("blah 1")
@test_case(Vector3D(0,1,0), Vector3D(0,-1,0), -1.0).description("blah 2")
@test_case(Vector3D(0,1,0), Vector3D(1,0,0), 0.0).description("blah 3")
def test_dot(self, vec1, vec2, expected_result):
dot = Vector3D.dot(vec1, vec2)
self.assertEquals(dot, expected_result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment