Skip to content

Commit

Permalink
refactor(term): make tests module consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Apr 20, 2024
1 parent 5b85455 commit a0c2c53
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions crates/synd_term/src/application/input_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mod feed {
}

#[cfg(test)]
mod test {
mod tests {
use super::*;

#[test]
Expand Down Expand Up @@ -207,7 +207,7 @@ mod comment {
}

#[cfg(test)]
mod test {
mod tests {
use super::*;

#[test]
Expand All @@ -223,34 +223,3 @@ mod comment {
}
}
}

#[cfg(test)]
mod test {
// use super::*;
// TODO: update test
/*
#[test]
fn parse_feed_url() {
let prompt = InputParser::SUSBSCRIBE_FEED_PROMPT;
let cases = vec![
(
format!("{prompt}https://blog.ymgyt.io/atom.xml"),
Ok("https://blog.ymgyt.io/atom.xml"),
),
(
format!("{prompt} https://blog.ymgyt.io/atom.xml "),
Ok("https://blog.ymgyt.io/atom.xml"),
),
(
format!("{prompt}\nhttps://blog.ymgyt.io/atom.xml\n"),
Ok("https://blog.ymgyt.io/atom.xml"),
),
];
for case in cases {
let p = InputParser::new(case.0.as_str());
assert_eq!(p.parse_feed_subscription(), case.1);
}
}
*/
}

0 comments on commit a0c2c53

Please sign in to comment.