Compare singleton buffers in test_open_and_save_new_file

This commit is contained in:
Antonio Scandurra 2022-01-10 11:56:00 +01:00
parent 0742640b39
commit a1597578ff

View file

@ -577,7 +577,10 @@ mod tests {
.unwrap()
});
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()
);
})
}