#[macro_use] mod common; #[cfg(test)] mod class { tests! { empty in class is OK "" } tests! { inherit_self in class is ERR "[line 1:13] Error at 'Foo': A class cannot inherit from itself" } tests! { inherited_method in class is OK "in foo" "in bar" "in baz" } tests! { local_inherit_other in class is OK "" } tests! { local_inherit_self in class is ERR "[line 2:15] Error at 'Foo': A class cannot inherit from itself" } tests! { local_reference_self in class is OK "" } tests! { reference_self in class is OK "" } }