From 1c083885bc4e915c94e5072e2834aef6a2a1f9b5 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 12 Nov 2023 23:03:39 +0900 Subject: [PATCH] added a new test script --- t/Makefile.am | 1 + t/Makefile.in | 1 + t/fun-01.hcl | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 t/fun-01.hcl diff --git a/t/Makefile.am b/t/Makefile.am index e119e9d..1a172ce 100644 --- a/t/Makefile.am +++ b/t/Makefile.am @@ -1,6 +1,7 @@ AUTOMAKE_OPTIONS = nostdinc check_SCRIPTS = \ + fun-01.hcl \ insta-01.hcl \ insta-02.hcl \ ret-01.hcl \ diff --git a/t/Makefile.in b/t/Makefile.in index 53d7455..13ccfa6 100644 --- a/t/Makefile.in +++ b/t/Makefile.in @@ -468,6 +468,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = nostdinc check_SCRIPTS = \ + fun-01.hcl \ insta-01.hcl \ insta-02.hcl \ ret-01.hcl \ diff --git a/t/fun-01.hcl b/t/fun-01.hcl new file mode 100644 index 0000000..53c85ce --- /dev/null +++ b/t/fun-01.hcl @@ -0,0 +1,16 @@ +defun aaa(a b) { + | c | + set c (+ a b); + return c; +}; + +set k (aaa 10 20); + +(if (= k 30) + (printf "OK\n") +else + (printf "ERROR\n") +) + + +