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.
 
 
 
 
StackGenVis/frontend/node_modules/cryo/test/date.test.js

30 lines
813 B

var mocha = require('mocha');
var assert = require('chai').assert;
var Cryo = require('../lib/cryo');
describe('Date', function() {
it('should hydrate a date', function() {
var original = new Date();
var stringified = Cryo.stringify(original);
var hydrated = Cryo.parse(stringified);
assert.typeOf(hydrated, 'date');
assert.strictEqual(hydrated.getTime(), original.getTime());
});
it('should hydrate a date that has properties', function() {
var original = new Date();
original.attached = 'some property';
var stringified = Cryo.stringify(original);
var hydrated = Cryo.parse(stringified);
assert.typeOf(hydrated, 'date');
assert.strictEqual(hydrated.getTime(), original.getTime());
assert.strictEqual(hydrated.attached, original.attached);
});
});