Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // valac test-bayes.vala --pkg Bayes-1.0
- static void main(string[] args) {
- Test.init (ref args);
- Test.add_func ("/Guess/basic", () => {
- Bayes.Guess guess = new Bayes.Guess ("english", 0.4567);
- assert (guess.get_name () == "english");
- assert (guess.get_probability () == 0.4567);
- guess.unref ();
- });
- Test.run ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement