{"id":18276990,"url":"https://github.com/shapelayer/polygon-testlib-wrapper","last_synced_at":"2025-04-09T04:29:17.458Z","repository":{"id":232941949,"uuid":"785563067","full_name":"ShapeLayer/polygon-testlib-wrapper","owner":"ShapeLayer","description":"Polygon testlib.h function wrapper for local testing","archived":false,"fork":false,"pushed_at":"2024-04-14T04:02:37.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T04:24:49.348Z","etag":null,"topics":["codeforces","codeforces-polygon","polygon","testlib"],"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/ShapeLayer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-12T06:19:41.000Z","updated_at":"2024-04-12T08:21:04.000Z","dependencies_parsed_at":"2024-04-12T15:30:29.072Z","dependency_job_id":"5a46f49e-3fb3-45ce-af1a-5978dc0e0648","html_url":"https://github.com/ShapeLayer/polygon-testlib-wrapper","commit_stats":null,"previous_names":["shapelayer/polygon-testlib-wrapper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShapeLayer%2Fpolygon-testlib-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShapeLayer%2Fpolygon-testlib-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShapeLayer%2Fpolygon-testlib-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShapeLayer%2Fpolygon-testlib-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShapeLayer","download_url":"https://codeload.github.com/ShapeLayer/polygon-testlib-wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980390,"owners_count":21027796,"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":["codeforces","codeforces-polygon","polygon","testlib"],"created_at":"2024-11-05T12:17:50.714Z","updated_at":"2025-04-09T04:29:17.431Z","avatar_url":"https://github.com/ShapeLayer.png","language":"C++","readme":"# Polygon testlib.h wrapper\n\nSimple testlib.h wrapper to run polygon requirements locally.  \n\n## How to Use\n\nCopy [`main.cpp`](./main.cpp) and add code to `int main(int argc, char* argv[])` or replace testlib.h function to wrapper function.  \n\n## Supports\n\nCoverage\n* Fully Covered\n  * Supports almost same function at local.\n* Just Wrapped\n  * Just passes at local.\n* Not Supported\n\n| testlib.h | wrapper fn | coverage |\n| :-: | :-: | :-: |\n| `registerGen(int argc, char* argv[])` | `w_register(int argc, char* argv[])` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) [^1] |\n| `rnd.next(int n)` | `w_rnd_next(int n)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `rnd.next(int L, int R)` | `w_rnd_next(int init, int fin)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `rnd.next(double n)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `rnd.next(string pattern)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `rnd.wnext(int n, int t)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `rnd.any(container)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n\n[^1]: `IS_GENERATOR` must be `true`\n\n| testlib.h | wrapper fn | coverage |\n| :-: | :-: | :-: |\n| `void registerValidation(int argc, char* argv[])` | `void w_register(int argc, char* argv[])` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) [^2] |\n| `void setTestCase(int T)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `void unsetTestCase()` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `string validator.testset()` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `string validator.group()` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `void ensure(bool cond)` | `void w_ensure(bool cond)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `void ensuref(bool cond, char *format, ...)` | `void w_ensuref(bool cond, char *format)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n\n[^2]: `IS_VALIDATOR` must be `true`\n\n| testlib.h | wrapper fn | coverage |\n| :-: | :-: | :-: |\n| `char readChar()` | `char w_readChar()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `char readChar(char c)` | `char w_readChar(char c)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `char readSpace()` | `char w_readSpace()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `void unreadChar(char c)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `string readToken()` | `string w_readToken()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `string readToken(string regex)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `string readWord()` | `string w_readWord()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `string readWord(string regex)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `long long readLong()` | `i64 w_readLong()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `long long readLong(long long L, long long R)` | `i64 w_readLong(i64 L, i64 R)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `vector\u003clong long\u003e readLongs(int n, long long L, long long R)` | - | ![](https://img.shields.io/badge/-not%20supported-red) | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `int readInt()` | `int w_readInt()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `int readInteger()` | `int w_readInteger()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `int readInt(int L, int R)` | `int w_readInt(int L, int R)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `int readInteger(int L, int R)` | `int w_readInteger(int L, int R)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `vector\u003cint\u003e readInts(int n, int L, int R)` | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `vector\u003cint\u003e readIntegers(int n, int L, int R)` | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `double readReal()` | `double w_readReal()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `double readDouble()` | `double w_readDouble()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `double readReal(double L, double R)` | `double w_readReal(double L, double R)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `double readDouble(double L, double R)` |`double w_readDouble(double L, double R)` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `double readStrictReal(double L, double R, int minPrecision, int maxPrecision)` | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `double readStrictDouble(double L, double R, int minPrecision, int maxPrecision)` | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `string readString()` | `string w_readString()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `string readLine()` | `string w_readLine()` | ![](https://img.shields.io/badge/-fully%20covered-brightgreen) |\n| `string readString(string regex)` | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `string readLine(string regex)` | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n| `void readEoln()` | `void w_readEoln()` | ![](https://img.shields.io/badge/-just%20wrapped-yellow) |\n| `void readEof()` | `void w_readEof()` | ![](https://img.shields.io/badge/-just%20wrapped-yellow) |\n\n| testlib.h | wrapper fn | coverage |\n| :-: | :-: | :-: |\n| (All functions of Checkers) | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n\n| testlib.h | wrapper fn | coverage |\n| :-: | :-: | :-: |\n| (All functions of Interactors) | - | ![](https://img.shields.io/badge/-not%20supported-red) |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapelayer%2Fpolygon-testlib-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshapelayer%2Fpolygon-testlib-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapelayer%2Fpolygon-testlib-wrapper/lists"}