mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 01:30:27 +02:00
Add tests for `--language'.
* test-suite/standalone/Makefile.am (top_srcdir): Add `top_srcdir'. (check_SCRIPTS, TESTS): Add `test-language'. (EXTRA_DIST): Add `test-language.el' and `test-language.js'. * test-suite/standalone/test-language, test-suite/standalone/test-language.el, test-suite/standalone/test-language.js: New files.
This commit is contained in:
parent
ed7c4a5d77
commit
13ff681c33
4 changed files with 54 additions and 1 deletions
12
test-suite/standalone/test-language.js
Normal file
12
test-suite/standalone/test-language.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* Sample ECMAscript code for `test-language'. */
|
||||
|
||||
function fib (n)
|
||||
{
|
||||
if (n <= 1)
|
||||
return n;
|
||||
else
|
||||
return fib (n - 1) + fib (n - 2);
|
||||
}
|
||||
|
||||
if (fib (7) != 13)
|
||||
error ("Something's wrong!");
|
Loading…
Add table
Add a link
Reference in a new issue