Crates.io | rosalind_test_reader |
lib.rs | rosalind_test_reader |
version | 0.1.0 |
source | src |
created_at | 2021-02-18 12:49:59.455267 |
updated_at | 2021-02-18 12:49:59.455267 |
description | A helper crate to read Rosalind test files |
homepage | |
repository | https://github.com/stevenliebregt/cargo-generate-rosalind-template |
max_upload_size | |
id | 357017 |
size | 2,754 |
Simple crate to help read test files from Rosalind.
RosalindIO::from_path("tests/test-file.txt");
// or from 2 strings directly
RosalindIO::from_strings(
String::from("Hello"),
String::from("World")
);
A file like this:
Input
Hello
Output
World
Becomes a RosalindIO struct like this:
RosalindIO {
input: "Hello",
output: "World",
}