ji 0.0.5
A minimal D application.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Ji
dub add ji
How to use
import unit;
unittest
{
bool ok()
{
return 40 + 2 == 42;
}
bool ko()
{
return 40 == 42;
}
Unit all(Unit u)
{
return u.ok(&ok).ko(&ko).directory_exists("/")
.is_absolute("/dev")
.is_rooted("/dev").is_valid_path(".").is_valid_file("dub.json")
.theory("Must be equal to 42", true, &ok)
.chaos("Must match false", &ko).contains("I love linux", "linux")
.no_contains("i love linux", "windows").finnish("i love linux", "linux").begin(
"linux is better than windows", "linux");
}
Unit u = new Unit;
int x = u.describe("All test should be pass", &all).end();
assert(x == 0);
}
- Registered by Willy Micieli
- 0.0.5 released 9 months ago
- taishingi/ji
- GPL-3.0-or-later
- Copyright © 2024, Willy Micieli