Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows ci-workflows #7

Merged
merged 10 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
msvc downgrade fixes
  • Loading branch information
Artur Bać committed Aug 12, 2024
commit 27a16e1819b6f82e0256391c36b3eb8e785e2551
1 change: 1 addition & 0 deletions fixed_lib/include/fixedmath/detail/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "../types.h"
#include <fixedmath/detail/type_traits.h>
#include <bit>

namespace fixedmath::inline v2::detail
{
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/addition_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int main()
test_result result;
"addition"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(fobj::add(0_fix, 1_fix), 1_fix);
expect_eq(fobj::add(1_fix, 1_fix), 2_fix);
Expand Down
4 changes: 2 additions & 2 deletions unit_tests/atan_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main()
test_result result;
"atan"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
test_atan(1_fix / 16, 0.062418_fix, 0.000025_fix);
test_atan(3_fix / 16, 0.185347_fix, 0.000025_fix);
Expand Down Expand Up @@ -55,7 +55,7 @@ int main()

"atan2"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
test_atan2(-1 / 2_fix, -1 / 2_fix, -2.3561944901923448_fix, 0.00005_fix);

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/division_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main()

"division"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(1_fix / 1_fix, 1_fix);
expect_eq(-1_fix / 1_fix, -1_fix);
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/fixed_construction_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int main()
test_result result;
"fixed construction"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(fixed_t{1}, 1_fix);
expect_eq(fixed_t{1u}, 1_fix);
Expand Down
6 changes: 3 additions & 3 deletions unit_tests/misc_functions_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main()

"ceil"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(ceil(-0.25_fix), 0_fix);
expect_eq(ceil(-1.25_fix), -1_fix);
Expand All @@ -30,7 +30,7 @@ int main()

"floor"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(fixed_to_arithmetic<int>(floor(0.25_fix)), 0);
expect_eq(floor(-1_fix + limits_::epsilon()), -1_fix); //
Expand All @@ -49,7 +49,7 @@ int main()

"angle_to_radians"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(angle_to_radians(0), 0_fix);
expect_eq(angle_to_radians(180), 3.1415926536_fix);
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/multiplication_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main()
test_result result;
"multiplication"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(1_fix * 1_fix, 1_fix);
expect_eq(10_fix * 0.5_fix, 5_fix);
Expand Down
4 changes: 2 additions & 2 deletions unit_tests/sin_cos_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main()
test_result result;
"sin"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
test_sin(phi + phi / 2, -0.99986_fix, 0.0001_fix);
test_sin(phi + phi / 4, -0.7071_fix, 0.0001_fix);
Expand Down Expand Up @@ -77,7 +77,7 @@ int main()

"cos"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
test_cos(2 * phi, 0.9998_fix, 0.0001_fix);
test_cos(phi, -0.9998_fix, 0.0001_fix);
Expand Down
4 changes: 2 additions & 2 deletions unit_tests/sqrt_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main()
test_result result;
"sqrt"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_approx(sqrt(1.4111175537109375_fix), 1.1878_fix, 0.001_fix);
expect_approx(sqrt(2.0000000000000000_fix), 1.4141_fix, 0.001_fix);
Expand All @@ -46,7 +46,7 @@ int main()

"hypot"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
test_hypot(-14.991608_fix, -0.837158_fix, 15.01495_fix, 0.0001_fix);
test_hypot(-14.991608_fix, -0.837158_fix, 15.01495_fix, 0.0001_fix);
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/subtraction_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int main()
test_result result;
"addition"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(0.2_fix - 1.2_fix, -1_fix);
expect_eq(3.2_fix - 1.2_fix, 2_fix);
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/tan_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int main()
test_result result;
"tan"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
test_tan(phi / 2 + phi / 32, -10.155854941143394_fix, 0.0001_fix);
test_tan(phi / 3, 1.73204_fix, 0.0001_fix);
Expand Down
8 changes: 4 additions & 4 deletions unit_tests/type_convertions_ut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main()

"arithmetic_to_fixed integrals"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(arithmetic_to_fixed(0), 0_fix);
expect_eq(arithmetic_to_fixed(1), limits_::one());
Expand All @@ -39,7 +39,7 @@ int main()

"arithmetic_to_fixed floating point"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(arithmetic_to_fixed(0.f), 0_fix);
expect_eq(arithmetic_to_fixed(-1.f), -limits_::one());
Expand Down Expand Up @@ -79,7 +79,7 @@ int main()

"fixed_to_arithmetic integrals"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
expect_eq(fixed_to_arithmetic<int>(0.25_fix), 0);
expect_eq(fixed_to_arithmetic<int>(1.25_fix), 1);
Expand All @@ -93,7 +93,7 @@ int main()
};
"fixed_to_arithmetic floating point"_test = [&result]
{
auto fn_tmpl = [] -> metatests::test_result
auto fn_tmpl = []() -> metatests::test_result
{
{
static constexpr auto approx{std::numeric_limits<float>::epsilon()};
Expand Down
Loading