htl-core 0.1.2

Engine of htl (Holistic Typed Lua): Teal check / gen / lint / fmt / test / bundle on an embedded mlua state. Use the `htl` crate.
Documentation
-- Type declarations for htl.test (runtime: test.lua).
local record test
   record Expect<T>
      to_equal: function(self, expected: T)
      to_not_equal: function(self, expected: T)
      to_be_truthy: function(self)
      to_be_falsy: function(self)
      to_be_nil: function(self)
      to_be_close: function(self, expected: number, eps?: number)
      to_error: function(self, pattern?: string)
   end

   record Report
      passed: integer
      failed: integer
      failures: {string}
   end

   describe: function(name: string, body: function())
   it: function(name: string, body: function())
   expect: function<T>(actual: T): Expect<T>
   run: function(filter?: string): Report
   count: function(): integer
end

return test