Rename Movements to Journal

This commit is contained in:
Anton Vakhrushev
2018-06-05 13:42:45 +03:00
parent 1c96ea31ad
commit 86dc009231
5 changed files with 13 additions and 13 deletions

View File

@ -1,15 +1,15 @@
import Daemon from '../source/Daemon';
import expect from 'expect';
import Movements from '../source/Movements';
import History from '../source/Journal';
test('Get prediction for beginning', function() {
const m = new Movements();
const m = new History();
const d = new Daemon(1, 1);
expect(d.predict(m)).toEqual(0);
});
test('Daemon 1-1', function() {
const m = new Movements();
const m = new History();
const d = new Daemon(1, 1);
const step_slice = s => {

View File

@ -1,25 +1,25 @@
import Movements from '../source/Movements';
import Journal from '../source/Journal';
import Move from '../source/Move';
import expect from 'expect';
test('Create with empty constructor', function() {
const m = new Movements();
const m = new Journal();
expect(m.getLastMovements(5, 5)).toEqual([]);
});
test('Constructor with human steps', function() {
const m = new Movements([new Move(1, 1)]);
const m = new Journal([new Move(1, 1)]);
expect(m.getLastMovements(5, 5)).toEqual([1, 1]);
});
test('Make steps', function() {
const m = new Movements();
const m = new Journal();
m.makeMove(1, 0);
expect(m.getLastMovements(5, 5)).toEqual([0, 1]);
});
test('Get slice', function() {
const m = new Movements([
const m = new Journal([
new Move(1, 1),
new Move(0, 1),
new Move(0, 1),