mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 18:36:30 +01:00
47 lines
752 B
JavaScript
47 lines
752 B
JavaScript
export default {
|
|
SketcherObjects: [
|
|
TestCase('segment'),
|
|
TestCase('arc'),
|
|
],
|
|
|
|
SketcherSolver: [
|
|
TestCase('constraints'),
|
|
TestCase('parametric'),
|
|
|
|
],
|
|
|
|
SketcherTools: [
|
|
TestCase('offset'),
|
|
|
|
],
|
|
|
|
Sketcher: [
|
|
|
|
],
|
|
|
|
ModellerOperations: [
|
|
|
|
],
|
|
|
|
BREP: [
|
|
TestCase('brep-bool'),
|
|
TestCase('brep-bool-wizard-based'),
|
|
TestCase('brep-bool-smoke'),
|
|
TestCase('brep-bool-topo'),
|
|
TestCase('brep-pip'),
|
|
TestCase('brep-raycast'),
|
|
TestCase('brep-enclose')
|
|
],
|
|
|
|
};
|
|
|
|
function TestCase(name) {
|
|
let tests = require('./cases/' + name).default;
|
|
tests = Object.keys(tests).filter(key => key.startsWith('test')).map(key => ({
|
|
name: key,
|
|
func: tests[key]
|
|
}));
|
|
return {
|
|
name, tests
|
|
}
|
|
}
|