my code not have any error when i build with
cargo build but when i try to run test on my lib both
cargo test or cargo test -- --nocapture shows this error
tamara@ddos:~/Documents/IpCodec/FdkAudio$ cargo test
Compiling FdkAudio v0.1.0 (/home/tamara/Documents/IpCodec/FdkAudio)
Finished test [unoptimized + debuginfo] target(s) in 0.74s
Running target/debug/deps/FdkAudio-b7d38557c2d0c286
running 2 tests
test sys::channel_map_descr::tests::FDK_channelMapDescr_init ... ok
test fdk::bitbuffer::tests::bitbuffer_init ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
Doc-tests FdkAudio
running 3 tests
test src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::escaped_value (line 277) ... FAILED
test src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::write_escaped_value (line 443) ... FAILED
test src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::pushback_cache (line 576) ... FAILED
failures:
---- src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::escaped_value (line 277) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `FDIS`
--> src/fdk/bitstream.rs:278:14
|
3 | q.v. ISO/IEC FDIS 23003-3 Table 16
| ^^^^ expected one of 8 possible tokens
error: aborting due to previous error
Couldn't compile the test.
---- src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::write_escaped_value (line 443) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `FDIS`
--> src/fdk/bitstream.rs:444:14
|
3 | q.v. ISO/IEC FDIS 23003-3 Table 16
| ^^^^ expected one of 8 possible tokens
error: aborting due to previous error
Couldn't compile the test.
---- src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::pushback_cache (line 576) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `function`
--> src/fdk/bitstream.rs:577:10
|
3 | PushBack function ungets a number of bits (combines cache and bitbuffer
| ^^^^^^^^ expected one of 8 possible tokens
error: mismatched closing delimiter: `}`
--> src/fdk/bitstream.rs:578:1
|
2 | fn main() {
| - closing delimiter possibly meant for this
3 | PushBack function ungets a number of bits (combines cache and bitbuffer
| - unclosed delimiter
4 | }
| ^ mismatched closing delimiter
error: aborting due to 2 previous errors
Couldn't compile the test.
failures:
src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::escaped_value (line 277)
src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::pushback_cache (line 576)
src/fdk/bitstream.rs - fdk::bitstream::FDK_BITSTREAM::write_escaped_value (line 443)
test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed, to rerun pass '--doc'