Skip to content

Commit

Permalink
+test for Versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Apr 27, 2011
1 parent b330f75 commit 8d12d86
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions t/core/Version.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
INIT {
pir::load_bytecode("rosella/core.pbc");
pir::load_bytecode("rosella/test.pbc");
}

Rosella::Test::test(Test::Rosella::Version);

class Test::Rosella::Version {
method nonexistant_version() {
my $ver := Rosella::get_version("BlahBlahBlah - does not exist");
Assert::equal(+$ver, -1);
}
}

0 comments on commit 8d12d86

Please sign in to comment.