First simple realisation

This commit is contained in:
Anton Vakhrushev
2018-06-05 18:20:47 +03:00
parent 7ddfae5e90
commit 4c4134b908
7 changed files with 108 additions and 27 deletions

View File

@ -8,6 +8,11 @@ test('Get prediction for beginning', function() {
expect(d.predict(m)).toEqual(0);
});
test('Can get power', function() {
const d = new Daemon(5, 8);
expect(d.power).toEqual(13);
});
test('Daemon 1-1', function() {
const m = new History();
const d = new Daemon(1, 1);