mirror of
https://github.com/bjornharrtell/jsts.git
synced 2026-01-18 14:08:37 +00:00
34 lines
631 B
JavaScript
34 lines
631 B
JavaScript
import fs from 'fs'
|
|
|
|
import generate from './generate.js'
|
|
|
|
const suites = [
|
|
'TestBoundary',
|
|
'TestBuffer',
|
|
'TestCentroid',
|
|
'TestConvexHull',
|
|
'TestEqualsExact',
|
|
'TestFunctionAA',
|
|
'TestFunctionLA',
|
|
'TestFunctionLL',
|
|
'TestFunctionPA',
|
|
'TestFunctionPL',
|
|
'TestFunctionPP',
|
|
'TestRelateAA',
|
|
'TestRelateAC',
|
|
'TestRelateLA',
|
|
'TestRelateLC',
|
|
'TestRelateLL',
|
|
'TestRelatePA',
|
|
'TestRelatePL',
|
|
'TestRelatePP',
|
|
'TestSimple',
|
|
'TestValid'
|
|
]
|
|
|
|
suites.forEach(xml => {
|
|
const fileName = 'testxml/general/' + xml + '.xml'
|
|
const data = fs.readFileSync(fileName, { encoding: 'utf8' })
|
|
generate(data, xml)
|
|
})
|