fix
This commit is contained in:
parent
0d5d14a401
commit
9ff89c3e25
1 changed files with 2 additions and 2 deletions
|
|
@ -266,7 +266,7 @@ fn an_unresolved_use_is_a_placeholder_and_a_read() {
|
|||
fn a_refused_composition_is_not_absence() {
|
||||
big(|| {
|
||||
let mut state = MemState::new();
|
||||
let bytes = store::payload(&surface(boxed("root", vec![]), &[])).unwrap();
|
||||
let bytes = store::payload(&surface(boxed("root", vec![]), &[]));
|
||||
state.put_raw(comp_address("c"), bytes);
|
||||
let document = surface(boxed("root", vec![use_of("u", "c", vec![])]), &[]);
|
||||
let resolution = run(&document, &state);
|
||||
|
|
@ -285,7 +285,7 @@ fn the_composition_record_must_be_the_one_the_use_names() {
|
|||
let other = composition("other", &[], boxed("c-root", vec![]));
|
||||
for wrong in [v2, other] {
|
||||
let mut state = MemState::new();
|
||||
state.put_raw(comp_address("c"), store::payload(&wrong).unwrap());
|
||||
state.put_raw(comp_address("c"), store::payload(&wrong));
|
||||
let resolution = run(&surface(boxed("root", vec![use_of("u", "c", vec![])]), &[]), &state);
|
||||
only(&resolution, Code::CompositionInvalid, Some("u"), "differs");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue