[][src]Macro rune_testing::rune

macro_rules! rune {
    ($ty:ty => $source:expr) => { ... };
}

Run the given program and return the expected type from it.

Examples

use rune_testing::*;

assert_eq! {
    rune!(bool => r#"fn main() { true || false }"#),
    true,
};