Skip to content

Commit

Permalink
Tweaking tanh test bounds and bringing back MacOS+Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Nov 14, 2023
1 parent 97586b9 commit b2fa98c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false # show all errors for each platform (vs. cancel jobs on error)
matrix:
os: [ubuntu-latest] #, macos-latest] # TODO: bring back Windows
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
# - name: Install Linux Deps
Expand Down
10 changes: 5 additions & 5 deletions test/src/tanh_approx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ TEST_CASE ("Tanh Approx Test")
{
test_approx ([] (auto x)
{ return math_approx::tanh<11> (x); },
2.0e-7f,
3.5e-7f,
5);
2.5e-7f,
4.0e-7f,
7);
}
SECTION ("9th-Order")
{
test_approx ([] (auto x)
{ return math_approx::tanh<9> (x); },
1.5e-6f,
1.5e-6f,
18);
20);
}
SECTION ("7th-Order")
{
test_approx ([] (auto x)
{ return math_approx::tanh<7> (x); },
1.5e-5f,
1.5e-5f,
226);
230);
}
SECTION ("5th-Order")
{
Expand Down

0 comments on commit b2fa98c

Please sign in to comment.