{"id":15497429,"url":"https://github.com/heapwolf/cxx-tap","last_synced_at":"2025-10-17T03:27:14.660Z","repository":{"id":33288011,"uuid":"36932725","full_name":"heapwolf/cxx-tap","owner":"heapwolf","description":"Test Anything Protocol (TAP) Producer for C++","archived":false,"fork":false,"pushed_at":"2021-06-24T12:17:59.000Z","size":5139,"stargazers_count":27,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:22:27.391Z","etag":null,"topics":["assertions","tap","test","testing"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-05T12:56:48.000Z","updated_at":"2024-11-16T01:38:47.000Z","dependencies_parsed_at":"2022-08-17T19:00:59.322Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/cxx-tap","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/heapwolf%2Fcxx-tap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcxx-tap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcxx-tap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcxx-tap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/cxx-tap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250331959,"owners_count":21413130,"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":["assertions","tap","test","testing"],"created_at":"2024-10-02T08:33:41.956Z","updated_at":"2025-10-17T03:27:09.622Z","avatar_url":"https://github.com/heapwolf.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\nTest Anything Protocol for `C++` based on the [TAP 13][1] Spec.\n\n\n# USAGE\nThis module is designed to work with the [`datcxx`][0] build tool. To add this\nmodule to your project us the following command...\n\n```bash\nbuild add heapwolf/cxx-tap\n```\n\n\n# TEST\n\n```bash\nbuild test\n```\n\n\n# EXAMPLE\n\n### CODE\n\n```c++\n#include \"deps/heapwolf/cxx-tap/index.hxx\"\n\nint main () {\n  TAP::Test t;\n\n  t.test(\"Bazz\", [\u0026](auto a) {\n    a-\u003eok(true, \"true is true\");\n\n    a-\u003etest(\"Quxx\", [\u0026] (auto b) {\n      b-\u003eok(true, \"nested\");\n      b-\u003eend();\n      a-\u003eend();\n    });\n  });\n\n  t.test(\"Foo\", [\u0026](auto t) {\n\n    float a = 2.23;\n    int b = 2;\n\n    t-\u003eequal(a, b, \"a float is not an int\");\n\n    t-\u003eok(false, \"true is also true\");\n    t-\u003eend(); // t is not automatically called for children.\n  });\n\n  // t.end(); // is automatically called by t's destructor.\n}\n```\n\n### OUTPUT\n\n```tap\nTAP version 13\nok 1 - true is true\nok 2 - nested\nnot ok 3 - a float is not an int\n  ---\n  operator: equal\n  expected: 2\n  actual:   2.23\n  ...\nnot ok 4 - true is also true\n  ---\n  operator: ok\n  expected: false\n  actual:   true\n  ...\n1..3\n# tests 3\n# pass  2\n# fail  1\n```\n\n[0]:https://github.com/datcxx/build\n[1]:https://testanything.org/tap-version-13-specification.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fcxx-tap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fcxx-tap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fcxx-tap/lists"}