From e57bf57ed343a957568440ab4258b6c071962638 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Tue, 30 Mar 2021 03:39:27 +0900 Subject: Add tests. * tests/test-compile-acl2.scm: New file. * Makefile.am (TESTS): Add `tests/test-compile-acl2.scm` file. --- Makefile.am | 3 ++- tests/test-compile-acl2.scm | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 tests/test-compile-acl2.scm diff --git a/Makefile.am b/Makefile.am index 3d99308..90f7bcd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,8 @@ SOURCES = \ language/acl2/parse.scm \ language/acl2/compile-tree-il.scm -TESTS = +TESTS = \ + tests/test-compile-acl2.scm TEST_EXTENSIONS = .scm diff --git a/tests/test-compile-acl2.scm b/tests/test-compile-acl2.scm new file mode 100644 index 0000000..bc1f1ea --- /dev/null +++ b/tests/test-compile-acl2.scm @@ -0,0 +1,30 @@ +;;; Guile-ACL2 --- Guile's ACL2 compiler +;;; Copyright © 2021 Masaya Tojo +;;; +;;; This file is part of Guile-ACL2. +;;; +;;; Guile-ACL2 is free software; you can redistribute it and/or modify +;;; it under the terms of the GNU Lesser General Public License as +;;; published by the Free Software Foundation; either version 3 of the +;;; License, or (at your option) any later version. +;;; +;;; Guile-ACL2 is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; Lesser General Public License for more details. +;;; +;;; You should have received a copy of the GNU Lesser General Public +;;; License along with Guile-ACL2. If not, see +;;; . + +(define-module (tests vikalpa) + #:use-module (srfi srfi-64) + #:use-module (system base compile)) + +(test-begin "test-compile-acl2") + +(test-equal "symbol-acl2" + 'acl2 + (compile ''acl2 #:from 'acl2)) + +(test-end "test-compile-acl2") -- cgit v1.2.3