Skip to content

Commit f7a077a

Browse files
Urgausyphar
authored andcommitted
Fix font-awesome-as-a-crate tests
1 parent a522135 commit f7a077a

File tree

1 file changed

+4
-3
lines changed
  • crates/font-awesome-as-a-crate/src

1 file changed

+4
-3
lines changed

crates/font-awesome-as-a-crate/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,16 @@ pub const fn svg(type_: Type, name: &str) -> Result<&'static str, NameError> {
9090
#[cfg(test)]
9191
mod tests {
9292
const fn usable_as_const_() {
93-
assert!(crate::svg(crate::Type::Solid, "cog").is_ok());
93+
assert!(crate::svg(crate::Type::Solid, "gear").is_ok());
9494
}
9595
#[test]
9696
fn usable_as_const() {
9797
usable_as_const_();
9898
}
9999
#[test]
100100
fn it_works() {
101-
assert!(crate::svg(crate::Type::Solid, "cog").is_ok());
102-
assert!(crate::svg(crate::Type::Solid, "snuffleupigus").is_err());
101+
assert!(crate::svg(crate::Type::Solid, "gear").is_ok());
102+
assert!(crate::svg(crate::Type::Solid, "download").is_ok());
103+
assert!(crate::svg(crate::Type::Solid, "giberich").is_err());
103104
}
104105
}

0 commit comments

Comments
 (0)