Add cargo test to CI run and fix an error found by it

Besides the normal usage of unit-tests this also ensures that
example in doc-comments do at least compile.
This commit is contained in:
tdittr 2021-04-27 11:59:44 +02:00
parent ca8273b2c5
commit 39f02c4a44
2 changed files with 5 additions and 1 deletions

View file

@ -25,3 +25,7 @@ jobs:
with:
command: clippy
args: -- -Dwarnings
- uses: actions-rs/cargo@v1
with:
command: test
args: --target x86_64-unknown-linux-gnu

View file

@ -266,7 +266,7 @@ float_funcs! {
/// Convert a float to a signed 64-bit integer, rounding towards -Infinity, and clamping
/// the result to lie within the range -0x8000000000000000 to 0x7FFFFFFFFFFFFFFF
0x6c float_to_int64(v: f32) -> i64;
/// Convert a float to a signed fixed point 64-bit integer representation where n
/// Convert a float to a signed fixed point 64-bit integer representation where n
/// specifies the position of the binary point in the resulting fixed point representation -
/// e.g. _float2fix(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and
/// clamps the resulting integer to lie within the range -0x8000000000000000 to