Skip to content

Commit

Permalink
missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
gtheler committed Jul 6, 2024
1 parent d5a0674 commit 67bfaaf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/func_min.fee
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VAR x
xmin1 = func_min(0.25*(x^2-1), x, -0.30, 0.99, 1.0e-10)
xmin2 = func_min(0.25*(x^2-1), x, -0.95, 0.99, 1.0e-10)
PRINT xmin1-xmin2
13 changes: 13 additions & 0 deletions tests/func_min.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
for i in . tests; do
if [ -e ${i}/functions.sh ]; then
. ${i}/functions.sh
fi
done
if [ -z "${functions_found}" ]; then
echo "could not find functions.sh"
exit 1;
fi

answerzero func_min.fee
exitifwrong $?

0 comments on commit 67bfaaf

Please sign in to comment.