Skip to content

Commit

Permalink
fileoverview note on exact nature of geometry expectation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Nov 1, 2014
1 parent 079b284 commit 85d5802
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/browser/tests-browserified.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,17 @@ suite('Explicit Error States', function() {
/* global suite, test */
'use strict';

/**
* @fileoverview The tests run by this file generally compare the triangles
* generated by the current version of libtess against a known-good version.
* Note that the comparison is currently strict deep equality, meaning that not
* only must the vertices be found at the exact same floating-point coordinates,
* but the triangle vertices must be emitted in the exact same order. This
* limits optimizations to transformations that change neither by design.
* Optimizations that do change that output must be much more carefully
* considered in light of the careful design around numerical precision limits.
*/

var chai = require('chai');
var assert = chai.assert;

Expand Down
11 changes: 11 additions & 0 deletions test/geometry.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
/* global suite, test */
'use strict';

/**
* @fileoverview The tests run by this file generally compare the triangles
* generated by the current version of libtess against a known-good version.
* Note that the comparison is currently strict deep equality, meaning that not
* only must the vertices be found at the exact same floating-point coordinates,
* but the triangle vertices must be emitted in the exact same order. This
* limits optimizations to transformations that change neither by design.
* Optimizations that do change that output must be much more carefully
* considered in light of the careful design around numerical precision limits.
*/

var chai = require('chai');
var assert = chai.assert;

Expand Down

0 comments on commit 85d5802

Please sign in to comment.