Created
May 15, 2012 23:24
-
-
Save marksimpson82/2705947 to your computer and use it in GitHub Desktop.
Ideal format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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