gash/tests
Timothy Sample 87229e4b3a Add arithmetic expansion.
* gash/arithmetic.scm: New file.
* Makefile.am (SOURCES): Add it.
* gash/lexer.scm (get-arithmetic-expansion): New procedure.
(get-expansion): Check for "$((" and use the new procedure to read an
arithmetic expansion.
* gash/eval.scm (word->qword): Handle '<sh-arithmetic>'.
* tests/unit/eval.scm: Add tests.
* tests/spec/Makefile.am (TESTS): Add 'arith'.
* tests/spec/oil.scm: Patch seven of its tests and filter out fifteen
others.
* doc/gash.texi, doc/syntax.txt: Add '<sh-arithmetic>' syntax.
2021-05-26 13:16:50 -04:00
..
bootstrap Make the bootstrap test work with current Guix. 2019-12-15 21:56:31 -05:00
data Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
spec Add arithmetic expansion. 2021-05-26 13:16:50 -04:00
unit Add arithmetic expansion. 2021-05-26 13:16:50 -04:00
arguments.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
assignments.org Reset exit status on assignment. 2019-12-08 12:18:31 -05:00
command-substitution.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
compound-words.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
conditionals.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
dot.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
eval.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
exiting.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
exporting.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
functions.org Fix top-level 'break', 'continue', and 'return'. 2019-08-01 09:02:05 -04:00
loops.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
pipes-and-booleans.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
read.org Make 'read' handle logical lines. 2019-12-08 12:18:31 -05:00
redirects.org Respect noclobber when redirecting. 2020-03-22 11:57:17 -04:00
run-test-suite.in Remove extra import from 'run-test-suite'. 2019-08-20 11:38:11 -04:00
signals.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
temporary-assignments.org Use temporary assignments when calling functions. 2019-11-24 17:13:54 -05:00
variable-and.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
variable-operators.org Implement asserting references. 2019-12-08 12:18:31 -05:00
variable-or.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
variable-patterns.org Remove tests for the '/' variable operator. 2019-11-24 17:13:54 -05:00
variable-words.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00
words.org Aggregate tests into test suites. 2019-06-14 20:27:33 -04:00