Further testing

This commit is contained in:
Bán Dénes 2021-07-18 00:39:33 +02:00
parent 4105718ec6
commit b159cfa9f7
13 changed files with 440 additions and 4 deletions

View file

@ -37,9 +37,12 @@ const process = async (raw, debug=false, logger=()=>{}) => {
logger('Parsing points...')
if (!config.points) {
throw new Error('Input does not contain any points!')
throw new Error('Input does not contain a points clause!')
}
const points = points_lib.parse(config.points, units)
if (!Object.keys(points).length) {
throw new Error('Input does not contain any points!')
}
if (debug) {
results.points = points
results.demo = io.twodee(points_lib.visualize(points), debug)