StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
'use strict';
|
|
/*jshint asi: true*/
|
|
|
|
// applying esprima to a bunch of files of contained libraries as a smoke test
|
|
var test = require('tap').test
|
|
, path = require('path')
|
|
, fs = require('fs')
|
|
, readdirp = require('readdirp')
|
|
, cardinal = require('..')
|
|
, node_modules = path.join(__dirname, '..', 'node_modules')
|
|
, tapdir = path.join(node_modules, 'tap')
|
|
, redeyeddir = path.join(node_modules, 'redeyed')
|
|
|
|
|
|
test('tap', function (t) {
|
|
var invalidTapFiles = [
|
|
'async-map-ordered.js'
|
|
, 'prof.js'
|
|
]
|
|
|
|
readdirp({ root: tapdir, fileFilter: '*.js' })
|
|
.on('data', function (entry) {
|
|
|
|
if (~invalidTapFiles.indexOf(entry.name)) return
|
|
|
|
var code = fs.readFileSync(entry.fullPath, 'utf-8')
|
|
, result = cardinal.highlight(code);
|
|
|
|
t.assert(~result.indexOf('[32mvar\u001b[39m') || !(~result.indexOf('var ')), 'highlighted ' + entry.path)
|
|
})
|
|
.on('end', t.end.bind(t))
|
|
})
|
|
|
|
test('redeyed', function (t) {
|
|
readdirp({ root: redeyeddir, fileFilter: 'redeyed.js' })
|
|
.on('data', function (entry) {
|
|
|
|
var code = fs.readFileSync(entry.fullPath, 'utf-8')
|
|
, result = cardinal.highlight(code);
|
|
|
|
t.assert(~result.indexOf('[32mvar\u001b[39m') || !(~result.indexOf('var ')), 'highlighted ' + entry.path)
|
|
})
|
|
.on('end', t.end.bind(t))
|
|
})
|
|
|