Add type annotations

This commit is contained in:
Patrick Lühne 2020-04-08 10:52:12 +02:00
parent d051b84845
commit a8df440fdf
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -378,16 +378,16 @@ mod tests
{
($intermediate:ident, $formula:expr, $output:expr) =>
{
let $intermediate = |f| f;
let $intermediate = |f: Box<Formula>| f;
assert!($formula, $output);
let $intermediate = |f| and(vec![f]);
let $intermediate = |f: Box<Formula>| and(vec![f]);
assert!($formula, $output);
let $intermediate = |f| or(vec![f]);
let $intermediate = |f: Box<Formula>| or(vec![f]);
assert!($formula, $output);
let $intermediate = |f| if_and_only_if(vec![f]);
let $intermediate = |f: Box<Formula>| if_and_only_if(vec![f]);
assert!($formula, $output);
};
}