{"id":13480255,"url":"https://github.com/Ryooooooga/cute","last_synced_at":"2025-03-27T10:31:12.814Z","repository":{"id":108162236,"uuid":"538037675","full_name":"Ryooooooga/cute","owner":"Ryooooooga","description":"Header only Unit Testing Framework for C99","archived":false,"fork":false,"pushed_at":"2023-12-18T12:33:12.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T04:26:16.311Z","etag":null,"topics":["c","header-only","unittest","unittesting"],"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/Ryooooooga.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-18T07:47:28.000Z","updated_at":"2023-09-12T12:45:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"aabba5ed-5b9f-48ef-b5b7-1f5257d406f1","html_url":"https://github.com/Ryooooooga/cute","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ryooooooga%2Fcute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ryooooooga%2Fcute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ryooooooga%2Fcute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ryooooooga%2Fcute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ryooooooga","download_url":"https://codeload.github.com/Ryooooooga/cute/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245826818,"owners_count":20678862,"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":["c","header-only","unittest","unittesting"],"created_at":"2024-07-31T17:00:36.360Z","updated_at":"2025-03-27T10:31:12.549Z","avatar_url":"https://github.com/Ryooooooga.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# CUTE\n\n❤️ Simple header only Unit Testing Framework for C99 ❤️\n\n## Examples\n\n```c\n#define CUTE_MAIN\n#include \"cute.h\"\n\nint factorial(int n) {\n    if (n \u003e 0) {\n        return n * factorial(n - 1);\n    }\n    return 1;\n}\n\nTEST(factorial) {\n    EXPECT(factorial(0), eq(1));\n    EXPECT(factorial(1), eq(1));\n    EXPECT(factorial(5), eq(120), \"5! == %d (actual %d)\", _1, _0);\n}\n\nTEST(string) {\n    const char *s = \"Hello, world!\";\n\n    ASSERT(s, is_not_null);\n    ASSERT(s, not(is_null));\n    EXPECT(s, eq_str(\"Hello, world!\"));\n    EXPECT((s, 4), eq_str(\"Hell\"));\n    EXPECT(s, contains(\"world\"));\n    EXPECT(s, not(contains(\"nya\")));\n}\n\nint main(void) {\n    return RUN_ALL();\n}\n```\n\nSee [example.c](example.c).\n\n## Usage\n\n### via CMake\n\n```cmake\ninclude(FetchContent)\n\nFetchContent_Declare(cute\n    GIT_REPOSITORY \"https://github.com/Ryooooooga/cute.git\"\n    GIT_TAG        \"main\"\n)\n\nFetchContent_MakeAvailable(cute)\n\nadd_executable(your_project your_src.c)\ntarget_link_library(your_project cute)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRyooooooga%2Fcute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRyooooooga%2Fcute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRyooooooga%2Fcute/lists"}