Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`.