This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft/openjscad/node_modules/@jscad/openscad-openjscad-translator/tests/primitive_solids.js

31 lines
718 B
JavaScript

const check = require('./helpers').check
const filedir = 'primitive_solids/'
exports['test cube'] = function () {
check(filedir, 'cubeEx1')
check(filedir, 'cubeEx2')
}
exports['test sphere'] = function () {
check(filedir, 'sphereEx1')
check(filedir, 'sphereEx2')
}
exports['test cylinder'] = function () {
check(filedir, 'cylinderEx1')
check(filedir, 'cylinderEx2')
check(filedir, 'cylinderEx3')
check(filedir, 'cylinderEx5')
}
exports['test cylinder additional parameters'] = function () {
check(filedir, 'cylinderEx4')
}
exports['test polyhedron'] = function () {
check(filedir, 'polyhedronEx1')
check(filedir, 'polyhedronEx2')
}
if (module === require.main) require('test').run(exports)