sile 0.14.8

Simon’s Improved Layout Engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SILE = require("core.sile")

describe("The frame factory", function()
  it("should exist", function()
    assert.is.truthy(SILE.newFrame)
  end)

  describe("Simple", function()
    local frame = SILE.newFrame({ id = "hello", top = 20, left = 30, bottom = 200, right = 300 })
    it("should exist", function() assert.is.truthy(frame) end)
    it("should have width", function () assert.is.equal(270, frame:width():tonumber()) end)
    it("should have height", function () assert.is.equal(180, frame:height():tonumber()) end)
  end)

end)