mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Some initial testing on dynamic nodes and composition
* Test use of borrow stack
This commit is contained in:
committed by
Keavon Chambers
parent
2ced9a57c4
commit
cef58b16c2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user