Some initial testing on dynamic nodes and composition

* Test use of borrow stack
This commit is contained in:
0hypercube 2022-09-28 18:47:34 +01:00 committed by Keavon Chambers
parent 2ced9a57c4
commit cef58b16c2
8 changed files with 220 additions and 9 deletions

View file

@ -142,3 +142,9 @@ macro_rules! impl_tuple {
impl_tuple! {
A B C D E F G H I J K L
}
#[test]
fn simple_downcast() {
let x = Box::new(3_u32) as Box<dyn DynAny>;
assert_eq!(*downcast::<u32>(x).unwrap(), 3_u32);
}