"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ava_1 = require("ava");
var canvas_1 = require("./canvas");
var cursor_1 = require("../utils/cursor");
ava_1.default('draw canvas', function (t) {
    var sky = {
        index: 1,
        placement: {
            type: 'Sky'
        },
        tile: {
            size: [32, 32],
            image: {
                type: 'data-url',
                src: ''
            },
            author: {
                name: ''
            }
        }
    };
    var cursor = new cursor_1.default(1, 0, 'pen', [[sky], [sky]], 1);
    var origin = [[[0, 0, 0], [0, 0, 0], [0, 0, 0]]];
    var expect = [[[0, 1, 0], [0, 1, 0], [0, 0, 0]]];
    var result = canvas_1.draw(origin, cursor);
    t.not(origin, result, 'draw関数は Immutable でなければならない');
    t.is(result.length, expect.length);
    t.deepEqual(result, expect);
});
//# sourceMappingURL=canvas.spec.js.map