diff --git a/Formula/c/cask.rb b/Formula/c/cask.rb index 0a9fec9d6cdef..8f3855aed11c6 100644 --- a/Formula/c/cask.rb +++ b/Formula/c/cask.rb @@ -27,10 +27,10 @@ def install end test do - (testpath/"Cask").write <<~EOS + (testpath/"Cask").write <<~LISP (source gnu) (depends-on "chess") - EOS + LISP system bin/"cask", "install" (testpath/".cask").directory? end diff --git a/Formula/d/doxymacs.rb b/Formula/d/doxymacs.rb index 2825c922b2abb..28199cc3d1681 100644 --- a/Formula/d/doxymacs.rb +++ b/Formula/d/doxymacs.rb @@ -50,11 +50,11 @@ def install end test do - (testpath/"test.el").write <<~EOS + (testpath/"test.el").write <<~LISP (add-to-list 'load-path "#{elisp}") (load "doxymacs") (print doxymacs-version) - EOS + LISP output = shell_output("emacs -Q --batch -l #{testpath}/test.el").strip assert_equal "\"#{version}\"", output diff --git a/Formula/e/ecl.rb b/Formula/e/ecl.rb index 87e46a8b18c85..6c8479e1d2c62 100644 --- a/Formula/e/ecl.rb +++ b/Formula/e/ecl.rb @@ -47,9 +47,9 @@ def install end test do - (testpath/"simple.cl").write <<~EOS + (testpath/"simple.cl").write <<~LISP (write-line (write-to-string (+ 2 2))) - EOS + LISP assert_equal "4", shell_output("#{bin}/ecl -shell #{testpath}/simple.cl").chomp end end diff --git a/Formula/o/ol.rb b/Formula/o/ol.rb index 8503d90838abb..184b43aa9daaf 100644 --- a/Formula/o/ol.rb +++ b/Formula/o/ol.rb @@ -28,9 +28,9 @@ def install end test do - (testpath/"gcd.ol").write <<~EOS + (testpath/"gcd.ol").write <<~LISP (print (gcd 1071 1029)) - EOS + LISP assert_equal "21", shell_output("#{bin}/ol gcd.ol").strip end end diff --git a/Formula/s/sbcl.rb b/Formula/s/sbcl.rb index 67fe65ed39a28..0bbcdea38f9d2 100644 --- a/Formula/s/sbcl.rb +++ b/Formula/s/sbcl.rb @@ -52,17 +52,17 @@ def install SBCL_SOURCE_ROOT: pkgshare/"src", SBCL_HOME: lib/"sbcl" pkgshare.install %w[contrib src] - (lib/"sbcl/sbclrc").write <<~EOS + (lib/"sbcl/sbclrc").write <<~'LISP' (setf (logical-pathname-translations "SYS") '(("SYS:SRC;**;*.*.*" #p"#{pkgshare}/src/**/*.*") ("SYS:CONTRIB;**;*.*.*" #p"#{pkgshare}/contrib/**/*.*"))) - EOS + LISP end test do - (testpath/"simple.sbcl").write <<~EOS + (testpath/"simple.sbcl").write <<~LISP (write-line (write-to-string (+ 2 2))) - EOS + LISP output = shell_output("#{bin}/sbcl --script #{testpath}/simple.sbcl") assert_equal "4", output.strip end