Skip to content

Commit

Permalink
add cos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffIrwin committed Oct 27, 2024
1 parent 0faa6a7 commit 49fa24a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/test.f90
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,16 @@ subroutine unit_test_intr_fns(npass, nfail)
abs(eval_f64('sum(exp([0.0, 1.0]));') - sum(exp([0.d0, 1.0d0]))) < tol, &
abs(eval_f64('sum(exp([0.5, 1.0]));') - sum(exp([0.5d0, 1.0d0]))) < tol, &
abs(eval_f64('sum(exp([2.0, 1.0]));') - sum(exp([2.d0, 1.0d0]))) < tol, &
abs(eval_f32('cos(0.0f);') - 1.0) < tol, &
abs(eval_f32('cos(1.0f);') - cos(1.0)) < tol, &
abs(eval_f64('cos(0.0);') - 1.0d0) < tol, &
abs(eval_f64('cos(1.0);') - cos(1.0d0)) < tol, &
abs(eval_f32('sum(cos([0.0f, 1.0f]));') - sum(cos([0.0, 1.0]))) < ftol, &
abs(eval_f32('sum(cos([0.5f, 1.0f]));') - sum(cos([0.5, 1.0]))) < ftol, &
abs(eval_f32('sum(cos([2.0f, 1.0f]));') - sum(cos([2.0, 1.0]))) < ftol, &
abs(eval_f64('sum(cos([0.0, 1.0]));') - sum(cos([0.d0, 1.0d0]))) < tol, &
abs(eval_f64('sum(cos([0.5, 1.0]));') - sum(cos([0.5d0, 1.0d0]))) < tol, &
abs(eval_f64('sum(cos([2.0, 1.0]));') - sum(cos([2.d0, 1.0d0]))) < tol, &
eval_i32('min(3, 2);') == 2, &
eval_i32('min(2, 2);') == 2, &
eval_i32('min(2, 3, 4);') == 2, &
Expand Down

0 comments on commit 49fa24a

Please sign in to comment.