https://github.com/taishingi/ji
A testing framework for d user
https://github.com/taishingi/ji
d testing testing-tools
Last synced: 5 months ago
JSON representation
A testing framework for d user
- Host: GitHub
- URL: https://github.com/taishingi/ji
- Owner: taishingi
- License: gpl-3.0
- Created: 2023-12-13T11:22:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-04T19:54:20.000Z (over 2 years ago)
- Last Synced: 2024-04-24T07:16:07.451Z (about 2 years ago)
- Topics: d, testing, testing-tools
- Language: D
- Homepage: https://github.com/taishingi/ji
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ji
```bash
dub add ji
```

## How to use
```d
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);
}
```