Compare singleton buffers in test_open_and_save_new_file
This commit is contained in:
parent
0742640b39
commit
a1597578ff
1 changed files with 4 additions and 1 deletions
|
@ -577,7 +577,10 @@ mod tests {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
});
|
});
|
||||||
cx.read(|cx| {
|
cx.read(|cx| {
|
||||||
assert_eq!(editor2.read(cx).buffer(), editor.read(cx).buffer());
|
assert_eq!(
|
||||||
|
editor2.read(cx).buffer().read(cx).as_singleton().unwrap(),
|
||||||
|
editor.read(cx).buffer().read(cx).as_singleton().unwrap()
|
||||||
|
);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue