toji/gl-matrix — pull request #5 by sinisterchipmunk (2011-11-04 03:45:31+00:00)
Title: Unit testing

This pull request adds a few unit testing mechanisms to the project. Please see https://github.com/sinisterchipmunk/gl-matrix/blob/unit-testing/HOW_TO_TEST.txt for details.

### other additions

Added `.travis.yml` file to integrate with travis-ci so that all tests will be run in a continuous integration environment whenever code is committed. This must also be explicitly enabled from http://travis-ci.org to take effect.

Resolved a minor bug: when Float32Array is not supported, `new Array(3)` is used, but its elements default to `undefined`. This produced NaN errors when performing arithmetic.

Altered the gl-matrix.js initialization to help facilitate unit testing (specifically, testing under conditions where Float32Array is not supported).