-
Committer:
Ali Sabil
-
Date:
2009-01-19 00:04:14 UTC
-
Revision ID:
ali.sabil@gmail.com-20090119000414-hpapm612d5azrjmk
Added a GTest module to the gobject backend
The GTest module allows creating test suites with the following code:
[Test (path = "/vala/modules/gtest")]
class FooBarTest {
public void set_up () {
}
public void tear_down () {
}
public void test_success () {
assert (1 == 1);
}
public void test_failure () {
assert (1 == 0);
}
}
int main (string[] args) {
Test.init (ref args);
var o = new FooBarTest ();
return Test.run ();
}