ji 0.0.4
A testing framework
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);
}
Unit u = new Unit;
int x = u.describe("All test should be pass", &all).end();
assert(x == 0);
}
- Registered by Willy Micieli
- 0.0.4 released 11 months ago
- taishingi/ji
- github.com/taishingi/ji
- GPL-3.0
- Copyright © 2023, Willy Micieli