joy-repl.at 1023 B

123456789101112131415161718192021222324252627282930
  1. # Joy -- implementation of the Joy programming language
  2. # Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
  3. #
  4. # Joy is free software; you can redistribute it and/or modify it under
  5. # the terms of the GNU General Public License as published by the Free
  6. # Software Foundation; either version 3 of the License, or (at your
  7. # option) any later version.
  8. #
  9. # Joy is distributed in the hope that it will be useful, but WITHOUT
  10. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. # License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with Joy. If not, see <http://www.gnu.org/licenses/>.
  16. AT_BANNER([REPL])
  17. AT_SETUP([boot])
  18. AT_KEYWORDS([repl])
  19. AT_CHECK([echo "" | joy],[0],[stdout])
  20. AT_CHECK([$GREP --quiet "(]AT_PACKAGE_NAME[)" stdout])
  21. AT_CLEANUP
  22. AT_SETUP([simple])
  23. AT_KEYWORDS([repl])
  24. AT_CHECK([echo "2 3 +" | joy],[0],[stdout])
  25. AT_CHECK([$GREP --quiet "@<:@5@:>@" stdout])
  26. AT_CLEANUP