Skip to content

Commit

Permalink
Adding tests for sqrt
Browse files Browse the repository at this point in the history
  • Loading branch information
robrohan committed May 28, 2023
1 parent 20a7217 commit a8e336b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ int main()
printf("0.308866 == %f\n", sin(0.314000));
}

// Simple square root test
{
printf("---------------------------\n");
printf("sqrt(2) == %f\n", sqrt(2));
printf("sqrt(3.14) == %f\n", sqrt(3.14));
}

// Simple rand tests
{
printf("---------------------------\n");
Expand Down

0 comments on commit a8e336b

Please sign in to comment.