diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 933de9a..77dc459 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,6 @@ on: - staging - trying -env: - RUSTFLAGS: -Dwarnings - jobs: build_and_test: name: Build and test @@ -30,7 +27,7 @@ jobs: - uses: actions/checkout@master - name: Install alsa - run: sudo apt install alsa alsa-lib + run: sudo apt install alsa libasound2-dev - name: Install ${{ matrix.rust }} uses: actions-rs/toolchain@v1 @@ -45,10 +42,10 @@ jobs: uses: actions-rs/cargo@v1 with: command: check - args: --all --bins --examples --tests --features decode-all + args: -p creek-core -p creek-decode-symphonia -p creek-encode-wav --tests --features decode-all - name: tests uses: actions-rs/cargo@v1 with: command: test - args: --all + args: -p creek-core -p creek-decode-symphonia -p creek-encode-wav diff --git a/decode_symphonia/src/lib.rs b/decode_symphonia/src/lib.rs index d426e29..ebaaca8 100644 --- a/decode_symphonia/src/lib.rs +++ b/decode_symphonia/src/lib.rs @@ -387,7 +387,6 @@ mod tests { let (mut decoder, file_info) = decoder.unwrap(); - println!("{:?}", file_info.num_frames); let mut data_block = DataBlock::new(1, block_size); unsafe { @@ -400,7 +399,7 @@ mod tests { let first_frame = [ 0.0, - 0.046873, + 0.046875, 0.09375, 0.1484375, 0.1953125, @@ -435,7 +434,7 @@ mod tests { let samples = &mut data_block.block[0]; for i in 0..samples.len() { - assert!(approx_eq!(f32, second_frame[i], samples[i], ulps = 2)); + assert_approx_eq!(f32, second_frame[i], samples[i], ulps = 2); } let last_frame = [ @@ -459,7 +458,7 @@ mod tests { } let samples = &mut data_block.block[0]; for i in 0..samples.len() { - assert!(approx_eq!(f32, last_frame[i], samples[i], ulps = 2)); + assert_approx_eq!(f32, last_frame[i], samples[i], ulps = 2); } assert_eq!(decoder.current_frame, file_info.num_frames - 1);