Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiwiyou/testlib.rs
testlib.h but for Rust
https://github.com/kiwiyou/testlib.rs
Last synced: 26 days ago
JSON representation
testlib.h but for Rust
- Host: GitHub
- URL: https://github.com/kiwiyou/testlib.rs
- Owner: kiwiyou
- Created: 2023-03-03T16:40:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T09:43:40.000Z (over 1 year ago)
- Last Synced: 2024-10-27T12:57:38.100Z (2 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# testlib.rs
Rust version of Mike Mirzayanov's [testlib.](https://github.com/MikeMirzayanov/testlib)
The original testlib is documented quite bad, so testlib.rs leverages rustdoc.
# Implemented Features
- arguments (indexed, named)
- pseudo random number generator
- input stream validator
- quit with status# How to use in Polygon
Add `src/lib.rs` to `Resources` as `testlib.rs`, and put `mod testlib` in your source.
# Common Pitfalls
- **DO NOT USE `println!`.**
Validator written in `testlib.h` rejects `\n` line endings as EOLN.
Use `testlib::EOLN` to print EOLN.
# How to read docs
Run `cargo doc`, then open `target/doc/testlib/index.html`.