ji ~master

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

ji-output

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);
}
Authors:
  • Willy Micieli
Dependencies:
colorize
Versions:
0.0.5 2024-Feb-04
0.0.4 2023-Dec-13
0.0.3 2023-Dec-13
0.0.2 2023-Dec-13
0.0.1 2023-Dec-13
Show all 6 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 5 downloads total

Score:
0.3
Short URL:
ji.dub.pm