ElyMark: dropped and pasted pictures copy into assets and link at the caret (C14.10)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
72e9441399
commit
b74f4e4e72
12 files changed
+357
-63
No files matched your search
@@ -180,6 +180,15 @@ fn an_import_copies_and_never_deletes() {
|
||||
assert_eq!(read(&second), "png-bytes");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn written_bytes_take_a_free_name() {
|
||||
let dir = tempfile::tempdir().expect("a temp dir");
|
||||
let first = write_attachment("pasted.png", b"one", dir.path()).expect("the first write");
|
||||
let second = write_attachment("pasted.png", b"two", dir.path()).expect("the second write");
|
||||
assert_ne!(first, second);
|
||||
assert_eq!((read(&first), read(&second)), ("one".into(), "two".into()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_numbered_import_name_fits_long_file_names() {
|
||||
let dir = tempfile::tempdir().expect("a temp dir");
|
||||
|
||||
Reference in new issue
Block a user