"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ava_1 = require("ava");
var selection_1 = require("./selection");
ava_1.default('getMatrix left-top to right-bottom', function (t) {
    var start = {
        row: 3,
        col: 2,
        num: 26
    };
    var end = {
        row: 4,
        col: 3,
        num: 35
    };
    var expect = [
        [26, 27],
        [34, 35] // row=1
    ];
    var result = selection_1.getMatrix({ start: start, end: end, moving: true });
    t.is(result.length, expect.length);
    t.deepEqual(result, expect);
});
ava_1.default('getMatrix click (3:2)', function (t) {
    var start = {
        row: 3,
        col: 2,
        num: 26
    };
    var end = {
        row: 3,
        col: 2,
        num: 26
    };
    var expect = [
        [26] // row=0
    ];
    var result = selection_1.getMatrix({ start: start, end: end, moving: true });
    t.is(result.length, expect.length);
    t.deepEqual(result, expect);
});
//# sourceMappingURL=selection.spec.js.map