Remove REPL unit tests
In order to test the REPL in isolation, we would have to mock out the parser and interpreter. This is possible, but too much work for the benefit (at least for now). * tests/repl.scm: Deleted. * Makefile.am: Remove it.
This commit is contained in:
parent
83c5d603ee
commit
549d1e7867
|
@ -54,7 +54,6 @@ TESTS = \
|
|||
tests/environment.scm \
|
||||
tests/lexer.scm \
|
||||
tests/parser.scm \
|
||||
tests/repl.scm \
|
||||
tests/shell.scm \
|
||||
tests/word.scm
|
||||
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
;;; The Geesh Shell Interpreter
|
||||
;;; Copyright 2017 Timothy Sample <samplet@ngyro.com>
|
||||
;;;
|
||||
;;; This file is part of Geesh.
|
||||
;;;
|
||||
;;; Geesh is free software: you can redistribute it and/or modify
|
||||
;;; it under the terms of the GNU General Public License as published by
|
||||
;;; the Free Software Foundation, either version 3 of the License, or
|
||||
;;; (at your option) any later version.
|
||||
;;;
|
||||
;;; Geesh 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 General Public License for more details.
|
||||
;;;
|
||||
;;; You should have received a copy of the GNU General Public License
|
||||
;;; along with Geesh. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
(define-module (test-repl)
|
||||
#:use-module (geesh repl)
|
||||
#:use-module (srfi srfi-64)
|
||||
#:use-module (tests automake))
|
||||
|
||||
;;; Commentary:
|
||||
;;;
|
||||
;;; Tests for the repl module.
|
||||
;;;
|
||||
;;; Code:
|
||||
|
||||
(test-begin "repl")
|
||||
|
||||
(test-equal "Echos input with prompt"
|
||||
"$ Hello World!\n$ "
|
||||
(with-output-to-string
|
||||
(lambda ()
|
||||
(with-input-from-string "Hello World!" run-repl))))
|
||||
|
||||
(test-end "repl")
|
Loading…
Reference in New Issue