The Terasology Foundation
UnitTest: TeraMath Project
TeraMath is a math library that is written for Terasology. Vector project is a function of projecting a vector U onto V. Write some test vectors that show that vector project is working correctly.
https://en.wikipedia.org/wiki/Vector_projection
Acceptance Criteria
- A functioning unit test that shows the project function works correctly
Where to start
Look at the project function: https://github.com/MovingBlocks/TeraMath/blob/develop/src/generator/resources/BaseVector.st#L96
Example test can be found under TeraMath/src/test/java/org/terasology/math/geom/
Write a test for each use case of project under:
- ImmutableVector2dTest.java
- ImmutableVector3dTest.java
- Vector2dTest.java
- Vector3dTest.java
Check how the unit tests are done in the Module Testing Environment module
Task tags
Students who completed this task
Torpedo