Created
February 11, 2011 13:00
-
-
Save seanparsons/822309 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
"Vector" should { | |
"return a distance of 2 in a 1-dimensional difference" in { | |
val distance = new PositionVector(0, 0, 0).distance(new PositionVector(2, 0, 0)) | |
distance must equalTo(2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment