Skip to content
Snippets Groups Projects
Commit d7f17893 authored by Michael Aaron Murphy's avatar Michael Aaron Murphy
Browse files

Fix Test

parent 8f28748f
No related branches found
No related tags found
No related merge requests found
......@@ -24,14 +24,14 @@ pub fn collect_arguments<'a>(args: KeyIterator<'a>) -> Result<Vec<KeyBuf>, TypeE
Ok(output)
}
#[cfg(test)]
mod tests {
use super::*;
use super::super::split_pattern;
#[test]
fn function_parsing() {
let (args, description) = split_comments("a:int b:bool -- a comment");
let (args, description) = split_pattern("a:int b:bool -- a comment", "--");
assert_eq!(args, "a:int b:bool");
assert_eq!(description, Some("a comment"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment