Skip to content

Commit

Permalink
reduce test size
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Jul 22, 2024
1 parent db98f48 commit 954e241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autd3-driver/src/firmware/operation/stm/foci/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ mod tests {

#[test]
fn test_foci() {
const FOCI_STM_SIZE: usize = 100;
const FOCI_STM_SIZE: usize = 10;
const N: usize = 8;
const FRAME_SIZE: usize =
size_of::<FociSTMHead>() + size_of::<STMFocus>() * FOCI_STM_SIZE * N;
Expand Down
4 changes: 2 additions & 2 deletions autd3-driver/src/firmware/operation/stm/gain/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ mod tests {

#[test]
fn test_phase_half() {
const GAIN_STM_SIZE: usize = 11;
const GAIN_STM_SIZE: usize = 9;
const FRAME_SIZE: usize = size_of::<GainSTMHead>() + NUM_TRANS_IN_UNIT * 2;

let device = create_device(0, NUM_TRANS_IN_UNIT);
Expand Down Expand Up @@ -694,7 +694,7 @@ mod tests {
(GainSTMControlFlags::END | GainSTMControlFlags::TRANSITION).bits(),
tx[offset_of!(GainSTMHead, flag)] & 0x3F
);
assert_eq!(2, tx[offset_of!(GainSTMHead, flag)] >> 6);
assert_eq!(0, tx[offset_of!(GainSTMHead, flag)] >> 6);
tx[size_of::<GainSTMSubseq>()..]
.chunks(size_of::<Drive>())
.zip(gain_data[8].iter())
Expand Down

0 comments on commit 954e241

Please sign in to comment.