LFE: fixed description and improved test

Updated the test to exercise actual LFE code, since io:format is part of
the Erlang stdlib.

Closes Homebrew/homebrew#42592.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Duncan McGreggor 2015-07-30 22:29:18 -05:00 committed by Alex Dunn
parent 8ecdc03e11
commit 265de2c53d

View file

@ -1,5 +1,5 @@
class Lfe < Formula
desc "LISP syntax front-end to the Erlang compiler"
desc "A Concurrent Lisp for the Erlang VM"
homepage "http://lfe.io/"
url "https://github.com/rvirding/lfe/archive/v0.9.2.tar.gz"
sha256 "9ff9661d03432a5f111266e56dcc24f24ceb633541f560333c3ff1acafc20794"
@ -22,6 +22,6 @@ class Lfe < Formula
end
test do
system bin/"lfe", "-eval", "'(io:format \"42\")'"
system bin/"lfe", "-eval", '"(io:format \"~p\" (list (* 2 (lists:foldl #\'+/2 0 (lists:seq 1 6)))))"'
end
end