Skip to content

Commit 822b214

Browse files
committed
Improved homog-test.js' mutation score to 0.8
Mutation analysis was performed on homog-test.js with Mutator (http://ortask.com/mutator/). I improved the test suite's mutation score from 0.63 to 0.8. In order to get to raise the quality of the test suite to 1.0, the following issue needs to be resolved: rockbot#22
1 parent 3ef9667 commit 822b214

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/homog-test.js

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ var should = require('should');
66
var Matrix = require('../').matrix;
77

88
describe('Create a homogenous matrix', function () {
9+
it('detects bad rotation matrix', function () {
10+
var Rz = new Matrix(3, 4);
11+
(function () {
12+
var H1 = new Homog(Rz, 0);
13+
}).should.throw();
14+
});
915
it('rotating about the z-axis by pi/2 radians', function () {
1016
var Rz = new Rotate.RotZ(Math.PI/2);
1117
var H1 = new Homog(Rz, 0);

0 commit comments

Comments
 (0)