mrdoob/three.js — pull request #2727 by bhouston (2012-12-03 16:18:40+00:00)
Title: Initial Test Suite for ThreeJS Geometry Primitives

I have written an initial test suite for the geometry primitives that addresses this issue:

#2721 - Test suite for Geometry Library (as possibly other stuff)

I have built it as directed by @gero3, @mrdoob, @alteredq -- thus it utilizes Qunit and it runs in a web page.

All tests are in the tests top level directory. Just run index.html to run all the tests.

I have only written tests for:

Box2
Box3
Plane
Sphere
Vector2
Vector3
Vector4

If people like this structure and merge this initial pull request, I will continue and write tests for the following primitives:

Color
Matrix3
Matrix4
Quaternion
Ray