mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Some initial testing on dynamic nodes and composition
* Test use of borrow stack
This commit is contained in:
parent
2ced9a57c4
commit
cef58b16c2
8 changed files with 220 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue