Add regular link tests for all the types.
This commit is contained in:
parent
65df18171a
commit
448902bb05
1
org_mode_samples/object/regular_link/code_ref_link.org
Normal file
1
org_mode_samples/object/regular_link/code_ref_link.org
Normal file
@ -0,0 +1 @@
|
|||||||
|
[[(foo)]]
|
1
org_mode_samples/object/regular_link/custom_id_link.org
Normal file
1
org_mode_samples/object/regular_link/custom_id_link.org
Normal file
@ -0,0 +1 @@
|
|||||||
|
[[#foo]]
|
1
org_mode_samples/object/regular_link/file_link.org
Normal file
1
org_mode_samples/object/regular_link/file_link.org
Normal file
@ -0,0 +1 @@
|
|||||||
|
[[file:simple.org]]
|
1
org_mode_samples/object/regular_link/fuzzy_link.org
Normal file
1
org_mode_samples/object/regular_link/fuzzy_link.org
Normal file
@ -0,0 +1 @@
|
|||||||
|
[[elisp.org]]
|
1
org_mode_samples/object/regular_link/id_link.org
Normal file
1
org_mode_samples/object/regular_link/id_link.org
Normal file
@ -0,0 +1 @@
|
|||||||
|
[[id:83986bdf-987c-465d-8851-44cb4c02a86c]]
|
1
org_mode_samples/object/regular_link/protocol_link.org
Normal file
1
org_mode_samples/object/regular_link/protocol_link.org
Normal file
@ -0,0 +1 @@
|
|||||||
|
[[shell:foo]]
|
@ -46,6 +46,9 @@ fn regular_link_without_description<'b, 'g, 'r, 's>(
|
|||||||
remaining,
|
remaining,
|
||||||
RegularLink {
|
RegularLink {
|
||||||
source: source.into(),
|
source: source.into(),
|
||||||
|
link_type: todo!(),
|
||||||
|
path: todo!(),
|
||||||
|
raw_link: todo!(),
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
@ -67,6 +70,9 @@ fn regular_link_with_description<'b, 'g, 'r, 's>(
|
|||||||
remaining,
|
remaining,
|
||||||
RegularLink {
|
RegularLink {
|
||||||
source: source.into(),
|
source: source.into(),
|
||||||
|
link_type: todo!(),
|
||||||
|
path: todo!(),
|
||||||
|
raw_link: todo!(),
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,9 @@ pub struct PlainText<'s> {
|
|||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub struct RegularLink<'s> {
|
pub struct RegularLink<'s> {
|
||||||
pub source: &'s str,
|
pub source: &'s str,
|
||||||
|
pub link_type: &'s str,
|
||||||
|
pub path: &'s str,
|
||||||
|
pub raw_link: &'s str,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
|
Loading…
Reference in New Issue
Block a user