Skip to content

Commit

Permalink
Fix off tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Jan 6, 2025
1 parent 20b849d commit 1067b9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/tests/exporter_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ describe ('Exporter', function () {
'0 1 0',
'-1 0 0',
'0 0 1',
'3 0 1 2',
'3 3 4 5',
'3 3 5 6',
'3 3 7 5',
'3 0 1 2 255 0 0',
'3 3 4 5 255 0 0',
'3 3 5 6 0 255 0',
'3 3 7 5 0 255 0',
''
].join ('\n'));

Expand Down
6 changes: 5 additions & 1 deletion test/tests/exportimport_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ describe ('Export-Import Test', function () {
it ('Export-Import Off', function (done) {
let model = CreateTestModel ();
ExportImport (model, OV.FileFormat.Text, 'off', (model2) => {
CheckSingleMeshModel (model, model2);
// Single Mesh Model with 2 materials
assert.strictEqual (model2.MaterialCount (), 2);
assert.strictEqual (model2.MeshInstanceCount (), 1);
assert.strictEqual (model.TriangleCount (), model2.TriangleCount ());
CheckModelBounds (model, model2);
done ();
});
});
Expand Down

0 comments on commit 1067b9b

Please sign in to comment.