Skip to content

Commit

Permalink
Merge pull request #7 from liwenboy/dev
Browse files Browse the repository at this point in the history
修复两处test错误
  • Loading branch information
mzdk100 authored Nov 27, 2024
2 parents b7caf32 + 2de5907 commit e64085d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions main/src/commander/keyboard/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,8 @@ impl Default for Keys {
}
}

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

#[test]
Expand All @@ -1060,13 +1060,13 @@ mod tests {

#[test]
fn test_vk_from_str() {
let key: Keys = "A".into();
let key: Keys = String::from("A").into();
assert_eq!(key, Keys::VkA);
}

#[test]
fn test_vk_to_str() {
let key_str: &str = Keys::VkA.into();
assert_eq!(key_str, "A");
let key_str: String = Keys::VkA.into();
assert_eq!(key_str, String::from("A"));
}
}
2 changes: 1 addition & 1 deletion utils/src/ibmeci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ unsafe impl Send for Ibmeci {}
#[cfg(all(test, target_arch = "x86"))]
mod test_eci {
use super::Ibmeci;
use rigela_utils::logger::init_logger;
use super::super::logger::init_logger;

#[tokio::test]
async fn main() {
Expand Down

0 comments on commit e64085d

Please sign in to comment.