{"id":21483421,"url":"https://github.com/martinnowak/qcheck","last_synced_at":"2026-01-04T05:02:20.679Z","repository":{"id":1610595,"uuid":"2223447","full_name":"MartinNowak/qcheck","owner":"MartinNowak","description":"QuickCheck like test library","archived":false,"fork":false,"pushed_at":"2018-01-31T14:52:01.000Z","size":193,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T00:05:58.282Z","etag":null,"topics":["d","fuzz-testing","quickcheck","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"the-development/flex","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MartinNowak.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":"2011-08-17T18:23:27.000Z","updated_at":"2020-03-31T15:41:39.000Z","dependencies_parsed_at":"2022-09-11T05:52:07.197Z","dependency_job_id":null,"html_url":"https://github.com/MartinNowak/qcheck","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinNowak%2Fqcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinNowak%2Fqcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinNowak%2Fqcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinNowak%2Fqcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinNowak","download_url":"https://codeload.github.com/MartinNowak/qcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006303,"owners_count":20382444,"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":["d","fuzz-testing","quickcheck","unit-testing"],"created_at":"2024-11-23T12:47:26.340Z","updated_at":"2026-01-04T05:02:15.640Z","avatar_url":"https://github.com/MartinNowak.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"qcheck [![Build Status](https://travis-ci.org/MartinNowak/qcheck.svg?branch=master)](https://travis-ci.org/MartinNowak/qcheck) [![Coverage](https://codecov.io/gh/MartinNowak/qcheck/branch/master/graph/badge.svg)](https://codecov.io/gh/MartinNowak/qcheck) [![Dub](https://img.shields.io/dub/v/qcheck.svg)](http://code.dlang.org/packages/qcheck)\n=====\n\nA library for automatic random testing, inspired by Haskell's excellent [QuickCheck](http://www.cse.chalmers.se/~rjmh/QuickCheck/).\n\n# [Documentation](http://martinnowak.github.io/qcheck)\n\n# Example Usage\n\n```d\nint[] mysort(int[] arr)\n{\n    // ...\n    return arr;\n}\n\nunittest\n{\n    import qcheck;\n    import std.algorithm;\n\n    quickCheck!((int[] a) =\u003e mysort(a.dup).equal(a.sort()));\n}\n```\n\n# Generate Random data\n\nThe library can also just be used to generate random data, see [`getArbitrary`](http://martinnowak.github.io/qcheck/qcheck/arbitrary/getArbitrary.html).\n\n```d\nunittest\n{\n    import qcheck.arbitrary;\n\n    auto sarray = getArbitrary!(int[4])();\n    auto array = getArbitrary!(float[])();\n    auto aarray = getArbitrary!(int[string])();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinnowak%2Fqcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinnowak%2Fqcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinnowak%2Fqcheck/lists"}