vtest 0.1.0
Handy utils for writing tests in
V
This library provides several
assert_***
assert
When generic functions will be available in V, concrete
assert_eq_str
assert_eq_int
assert_eq
The version of this module will remain in
0.x.x
unless the language API's are finalized and implemented.
Examples
import popzxc.vtest
fn test_fail_str() {
assert vtest.assert_eq_str("hello world", "hello wolrd")
}
fn test_fail_int() {
assert vtest.assert_eq_int(1000, 2000)
}
fn test_fail_true() {
assert vtest.assert_true(false)
}
fn test_fail_false() {
assert vtest.assert_false(true)
}
Installaction
Via vpm:
v install popzxc.vtest
Via vpkg:
vpkg get https://github.com/popzxc/vtest
Contributing
Feel free to open pull requests!