Pre-commit cargo test and cargo fmt hook test.
This commit is contained in:
parent
d2e9c5fcbe
commit
a3e47effb4
@ -22,6 +22,6 @@ merge_derives = true
|
|||||||
array_horizontal_layout_threshold = 5
|
array_horizontal_layout_threshold = 5
|
||||||
condense_wildcard_suffixes = true
|
condense_wildcard_suffixes = true
|
||||||
# rustfmt 0.2.7 panics with format_string = true atm
|
# rustfmt 0.2.7 panics with format_string = true atm
|
||||||
# format_strings = true
|
# format_strings = false
|
||||||
chain_one_line_max = 60
|
chain_one_line_max = 60
|
||||||
chain_split_single_child = false
|
chain_split_single_child = false
|
||||||
|
|||||||
@ -175,11 +175,11 @@ mod tests {
|
|||||||
let channel = Channel::read_from(BufReader::new(file)).unwrap();
|
let channel = Channel::read_from(BufReader::new(file)).unwrap();
|
||||||
|
|
||||||
let firstitem = channel.items().first().unwrap();
|
let firstitem = channel.items().first().unwrap();
|
||||||
let descr = "NSA whistleblower Edward Snowden discusses the massive Equifax data breach \
|
let descr = "NSA whistleblower Edward Snowden discusses the massive Equifax data \
|
||||||
and allegations of Russian interference in the US election. Commentator \
|
breach and allegations of Russian interference in the US election. \
|
||||||
Shaun King explains his call for a boycott of the NFL and talks about his \
|
Commentator Shaun King explains his call for a boycott of the NFL and \
|
||||||
campaign to bring violent neo-Nazis to justice. Rapper Open Mike Eagle \
|
talks about his campaign to bring violent neo-Nazis to justice. Rapper \
|
||||||
performs.";
|
Open Mike Eagle performs.";
|
||||||
let i = parse_episode(&firstitem, 0).unwrap();
|
let i = parse_episode(&firstitem, 0).unwrap();
|
||||||
|
|
||||||
assert_eq!(i.title, Some("The Super Bowl of Racism"));
|
assert_eq!(i.title, Some("The Super Bowl of Racism"));
|
||||||
@ -305,9 +305,8 @@ mod tests {
|
|||||||
let descr2 = "<p>The Gnome project is about to solve one of our audience's biggest \
|
let descr2 = "<p>The Gnome project is about to solve one of our audience's biggest \
|
||||||
Wayland’s concerns. But as the project takes on a new level of relevance, \
|
Wayland’s concerns. But as the project takes on a new level of relevance, \
|
||||||
decisions for the next version of Gnome have us worried about the \
|
decisions for the next version of Gnome have us worried about the \
|
||||||
future.</p>
|
future.</p>\n\n\
|
||||||
|
<p>Plus we chat with Wimpy about the Ubuntu Rally in NYC, \
|
||||||
<p>Plus we chat with Wimpy about the Ubuntu Rally in NYC, \
|
|
||||||
Microsoft’s sneaky move to turn Windows 10 into the “ULTIMATE LINUX \
|
Microsoft’s sneaky move to turn Windows 10 into the “ULTIMATE LINUX \
|
||||||
RUNTIME”, community news & more!</p>";
|
RUNTIME”, community news & more!</p>";
|
||||||
assert_eq!(i2.title, Some("Gnome Does it Again | LUP 213"));
|
assert_eq!(i2.title, Some("Gnome Does it Again | LUP 213"));
|
||||||
|
|||||||
@ -68,9 +68,11 @@ lazy_static!{
|
|||||||
static ref HAMMOND_DATA: PathBuf = {
|
static ref HAMMOND_DATA: PathBuf = {
|
||||||
HAMMOND_XDG.create_data_directory(HAMMOND_XDG.get_data_home()).unwrap()
|
HAMMOND_XDG.create_data_directory(HAMMOND_XDG.get_data_home()).unwrap()
|
||||||
};
|
};
|
||||||
|
|
||||||
static ref HAMMOND_CONFIG: PathBuf = {
|
static ref HAMMOND_CONFIG: PathBuf = {
|
||||||
HAMMOND_XDG.create_config_directory(HAMMOND_XDG.get_config_home()).unwrap()
|
HAMMOND_XDG.create_config_directory(HAMMOND_XDG.get_config_home()).unwrap()
|
||||||
};
|
};
|
||||||
|
|
||||||
static ref HAMMOND_CACHE: PathBuf = {
|
static ref HAMMOND_CACHE: PathBuf = {
|
||||||
HAMMOND_XDG.create_cache_directory(HAMMOND_XDG.get_cache_home()).unwrap()
|
HAMMOND_XDG.create_cache_directory(HAMMOND_XDG.get_cache_home()).unwrap()
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user