{"id":22473172,"url":"https://github.com/bas080/lunit","last_synced_at":"2025-03-27T16:26:24.209Z","repository":{"id":27038116,"uuid":"30503171","full_name":"bas080/lunit","owner":"bas080","description":"Test your Lua code by writting tests in Lua","archived":false,"fork":false,"pushed_at":"2015-02-08T20:03:05.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T20:12:21.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bas080.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-08T19:43:02.000Z","updated_at":"2015-02-08T20:04:06.000Z","dependencies_parsed_at":"2022-07-18T02:46:45.811Z","dependency_job_id":null,"html_url":"https://github.com/bas080/lunit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Flunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Flunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Flunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Flunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bas080","download_url":"https://codeload.github.com/bas080/lunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245881019,"owners_count":20687653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-06T12:20:00.325Z","updated_at":"2025-03-27T16:26:24.171Z","avatar_url":"https://github.com/bas080.png","language":"Lua","readme":"Lunit\n=====\nWrite tests for your lua code.\n\nUsage\n-----\n*example taken from the tests.lua*\n```lua\nlunit.tests( 'lunit', function( unit )\n\n  unit.ok( true, 'true is ok')\n  unit.ok( 'string', 'string is ok')\n  unit.ok( '', 'empty string is ok')\n  unit.ok( {}, 'table is ok')\n  unit.ok( not nil, 'nil is not ok')\n  unit.ok( not false, 'false is not ok')\n\n  unit.equal( true, true, 'equals true')\n  unit.equal( false, false, 'equals false')\n  unit.equal( 'hello', 'hello', 'equals string')\n  unit.equal( type(''), 'string', 'check type')\n\nend)\n```\n\nRoadmap\n-------\n- deep equals for testing table outputs\n- asynchronous tests\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbas080%2Flunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbas080%2Flunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbas080%2Flunit/lists"}