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.
15 lines
433 B
15 lines
433 B
var falafel = require('../');
|
|
var test = require('tape');
|
|
|
|
test('generators', function (t) {
|
|
t.plan(1);
|
|
|
|
var src = 'console.log((function * () { yield 3 })().next().value)';
|
|
var output = falafel(src, { ecmaVersion: 6 }, function (node) {
|
|
if (node.type === 'Literal') {
|
|
node.update('555');
|
|
}
|
|
});
|
|
Function(['console'],output)({log:log});
|
|
function log (n) { t.equal(n, 555) }
|
|
});
|
|
|