Skip to content

Instantly share code, notes, and snippets.

@marksimpson82
Created May 15, 2012 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marksimpson82/2705947 to your computer and use it in GitHub Desktop.
Save marksimpson82/2705947 to your computer and use it in GitHub Desktop.
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