Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaede committed Nov 25, 2023
1 parent 63a6730 commit 6298373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/control_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ impl ControlTable {
#[cfg(test)]
mod tests {
use crate::control_table::ControlTable;
use crate::control_table::DynamixelModel;

#[test]
fn to_address_xc330() {
let name = ControlTable::ModelNumber;
Expand All @@ -425,7 +427,7 @@ mod tests {
#[test]
fn to_unit_xc330() {
let name = ControlTable::ModelNumber;
assert_eq!(name.to_unit(), 1.0);
assert_eq!(name.to_unit(&DynamixelModel::Xc330T181), 1.0);
assert_eq!(ControlTable::PresentPWM.to_unit(&DynamixelModel::Xc330T181), 0.113);
}
}

0 comments on commit 6298373

Please sign in to comment.