mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 12:41:31 +11:00
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:
parent
ca8273b2c5
commit
39f02c4a44
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue