add tests for the interperter
This commit is contained in:
1 parent
9be8cc503f
commit
0f2ff34a30
3 files changed
+367
-2
No files matched your search
@@ -53,7 +53,12 @@ pub fn build<'a>(
|
||||
for child in rsx.roots {
|
||||
children_built.push(build_node(child, &mut ctx, factory)?);
|
||||
}
|
||||
Ok(factory.fragment_from_iter(children_built.iter()))
|
||||
|
||||
if children_built.len() == 1 {
|
||||
return Ok(children_built.pop().unwrap());
|
||||
} else {
|
||||
Ok(factory.fragment_from_iter(children_built.iter()))
|
||||
}
|
||||
}
|
||||
|
||||
fn build_node<'a>(
|
||||
|
||||
Reference in new issue
Block a user