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.
34 lines
650 B
34 lines
650 B
var test = require('tape')
|
|
|
|
var createStore = require('../create-store.js')
|
|
|
|
test('can create store', function (assert) {
|
|
var privates = createStore()
|
|
|
|
var key = {}
|
|
var value = privates(key)
|
|
|
|
value.foo = 'bar'
|
|
|
|
var value2 = privates(key)
|
|
|
|
assert.equal(value, value2)
|
|
assert.equal(value2.foo, 'bar')
|
|
assert.deepEqual(Object.keys(key), [])
|
|
|
|
assert.end()
|
|
})
|
|
|
|
test('cannot call valueOf() to access store', function (assert) {
|
|
var privates = createStore()
|
|
|
|
var key = { foo: 'bar' }
|
|
privates(key)
|
|
|
|
var obj = key.valueOf()
|
|
|
|
assert.equal(obj, key)
|
|
assert.equal(obj.foo, 'bar')
|
|
|
|
assert.end()
|
|
})
|
|
|