{"id":15168580,"url":"https://github.com/ciavash/t","last_synced_at":"2025-10-01T00:32:24.214Z","repository":{"id":147482333,"uuid":"458733675","full_name":"CIAvash/T","owner":"CIAvash","description":"Raku module for writing test assertions which output good test descriptions and error messages","archived":true,"fork":false,"pushed_at":"2022-07-23T11:26:32.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-30T17:36:44.381Z","etag":null,"topics":["assertion","assertions","library","module","raku","raku-module","rakulang","slang","testing"],"latest_commit_sha":null,"homepage":"https://codeberg.org/CIAvash/T","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CIAvash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-13T06:51:50.000Z","updated_at":"2024-03-30T12:41:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"df9bd382-f47b-4b75-9899-2340650cd8a4","html_url":"https://github.com/CIAvash/T","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"8f8facc0563ccd2ccee333e3823a1ed32c4a8163"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CIAvash%2FT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CIAvash%2FT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CIAvash%2FT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CIAvash%2FT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CIAvash","download_url":"https://codeload.github.com/CIAvash/T/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234803484,"owners_count":18889263,"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":["assertion","assertions","library","module","raku","raku-module","rakulang","slang","testing"],"created_at":"2024-09-27T06:23:18.881Z","updated_at":"2025-10-01T00:32:18.957Z","avatar_url":"https://github.com/CIAvash.png","language":"Raku","readme":"NAME\n====\n\nT - An easy way of writing test assertions which output good test descriptions and error messages\n\nDESCRIPTION\n===========\n\nT is a [Raku](https://www.raku-lang.ir/en/) module for writing test\nassertions which output good test descriptions and error messages.\n\nIt provides the `t` keyword for writing test assertions which takes an expression of form `\u003cgot\u003e \u003cinfix\u003e \u003cexpected\u003e`.\n\nGoals of the module:\n- Write less but more readable test code\n- Get a useful test description and failure message\n\nSYNOPSIS\n========\n\n```raku\nuse T:auth\u003czef:CIAash\u003e;\n\nt 4 == 4;\n=output ok 1 - 4 == 4\n\nt $my_great_module.return('something') eq 'something';\n=output ok 2 - $my_great_module.return('something') eq 'something'\n\nt $my_great_module.return('something else') eq 'something';\n=output not ok 3 - $my_great_module.return('something else') eq 'something'\n# Failed test '$my_great_module.return('something else') eq 'something''\n# at ... line ...\n# expected: \"something\"\n#  matcher: 'infix:\u003ceq\u003e'\n#      got: \"something else\"\n```\n\nINSTALLATION\n============\n\nYou need to have [Raku](https://www.raku-lang.ir/en) and [zef](https://github.com/ugexe/zef), then run:\n\n```console\nzef install --/test \"T:auth\u003czef:CIAvash\u003e\"\n```\n\nor if you have cloned the repo:\n\n```console\nzef install .\n```\n\nTESTING\n=======\n```console\nprove6 -I. -v\n```\nor:\n```console\nprove -ve 'raku -I.' --ext rakutest\n```\n\nREPOSITORY\n==========\n\n[https://codeberg.org/CIAvash/T/](https://codeberg.org/CIAvash/T/)\n\nBUG\n===\n\n[https://codeberg.org/CIAvash/T/issues](https://codeberg.org/CIAvash/T/issues)\n\nAUTHOR\n======\n\nSiavash Askari Nasr - [https://siavash.askari-nasr.com](https://siavash.askari-nasr.com)\n\nCOPYRIGHT\n=========\n\nCopyright © 2022 Siavash Askari Nasr\n\nLICENSE\n=======\n\nThis file is part of T.\n\nT is free software: you can redistribute it and/or modify it under the\nterms of the GNU Lesser General Public License as published by the\nFree Software Foundation, either version 3 of the License, or (at\nyoption) any later version.\n\nT is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or\nFITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public\nLicense for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with T. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciavash%2Ft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciavash%2Ft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciavash%2Ft/lists"}