Deferable is apprently a less common but correct spelling.
# later steps.
REGRESS =
-DEFERABLE=1
+DEFERRABLE=1
OPTIONAL=1
# Extra implementation specific options to pass to runtest.py
haxe_RUNSTEP_cpp = ../$(2) $(3)
haxe_RUNSTEP_js = node ../$(2) $(3)
-opt_DEFERABLE = $(if $(strip $(DEFERABLE)),$(if $(filter t true T True TRUE 1 y yes Yes YES,$(DEFERABLE)),--deferable,--no-deferable),--no-deferable)
+opt_DEFERRABLE = $(if $(strip $(DEFERRABLE)),$(if $(filter t true T True TRUE 1 y yes Yes YES,$(DEFERRABLE)),--deferrable,--no-deferrable),--no-deferrable)
opt_OPTIONAL = $(if $(strip $(OPTIONAL)),$(if $(filter t true T True TRUE 1 y yes Yes YES,$(OPTIONAL)),--optional,--no-optional),--no-optional)
# Return list of test files for a given step. If REGRESS is set then
$(foreach test,$(call STEP_TEST_FILES,$(impl),$(step)),\
echo '----------------------------------------------' && \
echo 'Testing $@, step file: $+, test file: $(test)' && \
- echo 'Running: $(call get_run_prefix,$(impl))../runtest.py $(TEST_OPTS) $(opt_DEFERABLE) $(opt_OPTIONAL) $(call $(impl)_TEST_OPTS) ../$(test) -- $(call $(impl)_RUNSTEP,$(step),$(+))' && \
- $(call get_run_prefix,$(impl))../runtest.py $(TEST_OPTS) $(opt_DEFERABLE) $(opt_OPTIONAL) $(call $(impl)_TEST_OPTS) ../$(test) -- $(call $(impl)_RUNSTEP,$(step),$(+)) &&) \
+ echo 'Running: $(call get_run_prefix,$(impl))../runtest.py $(TEST_OPTS) $(opt_DEFERRABLE) $(opt_OPTIONAL) $(call $(impl)_TEST_OPTS) ../$(test) -- $(call $(impl)_RUNSTEP,$(step),$(+))' && \
+ $(call get_run_prefix,$(impl))../runtest.py $(TEST_OPTS) $(opt_DEFERRABLE) $(opt_OPTIONAL) $(call $(impl)_TEST_OPTS) ../$(test) -- $(call $(impl)_RUNSTEP,$(step),$(+)) &&) \
true))
# Allow test, tests, test^STEP, test^IMPL, and test^IMPL^STEP
* Add the following functions to `core.ns`:
* `prn`: call `pr_str` on the first parameter with `print_readably`
set to true, prints the result to the screen and then return
- `nil`. Note that the full version of `prn` is a deferable below.
+ `nil`. Note that the full version of `prn` is a deferrable below.
* `list`: take the parameters and return them as a list.
* `list?`: return true if the first parameter is a list, false
otherwise.
parser.add_argument('--hard', action='store_true',
help="Turn soft tests following a ';>>> soft=True' into hard failures")
-# Control whether deferable and optional tests are executed
-parser.add_argument('--deferable', dest='deferable', action='store_true',
- help="Enable deferable tests that follow a ';>>> deferable=True'")
-parser.add_argument('--no-deferable', dest='deferable', action='store_false',
- help="Disable deferable tests that follow a ';>>> deferable=True'")
-parser.set_defaults(deferable=True)
+# Control whether deferrable and optional tests are executed
+parser.add_argument('--deferrable', dest='deferrable', action='store_true',
+ help="Enable deferrable tests that follow a ';>>> deferrable=True'")
+parser.add_argument('--no-deferrable', dest='deferrable', action='store_false',
+ help="Disable deferrable tests that follow a ';>>> deferrable=True'")
+parser.set_defaults(deferrable=True)
parser.add_argument('--optional', dest='optional', action='store_true',
help="Enable optional tests that follow a ';>>> optional=True'")
parser.add_argument('--no-optional', dest='optional', action='store_false',
self.line_num = 0
self.data = test_file.read().split('\n')
self.soft = False
- self.deferable = False
+ self.deferrable = False
self.optional = False
def next(self):
exec(line[5:], {}, settings)
if 'soft' in settings:
self.soft = settings['soft']
- if 'deferable' in settings and settings['deferable']:
- self.deferable = "\nSkipping deferable and optional tests"
+ if 'deferrable' in settings and settings['deferrable']:
+ self.deferrable = "\nSkipping deferrable and optional tests"
return True
if 'optional' in settings and settings['optional']:
self.optional = "\nSkipping optional tests"
failures = []
while t.next():
- if args.deferable == False and t.deferable:
- log(t.deferable)
+ if args.deferrable == False and t.deferrable:
+ log(t.deferrable)
break
if args.optional == False and t.optional:
;=>(1 2 3)
-;>>> deferable=True
+;>>> deferrable=True
;;
-;; -------- Deferable Functionality --------
+;; -------- Deferrable Functionality --------
;; Testing read of nil/true/false
nil
()
;=>()
-;>>> deferable=True
+;>>> deferrable=True
;>>> optional=True
;;
-;; -------- Deferable/Optional Functionality --------
+;; -------- Deferrable/Optional Functionality --------
;; Testing evaluation within collection literals
[1 2 (+ 1 2)]
a
;=>4
-;>>> deferable=True
+;>>> deferrable=True
;>>> optional=True
;;
-;; -------- Deferable/Optional Functionality --------
+;; -------- Deferrable/Optional Functionality --------
;; Testing let* with vector bindings
(let* [z 9] z)
;;;;=>89
-;>>> deferable=True
+;>>> deferrable=True
;;
-;; -------- Deferable Functionality --------
+;; -------- Deferrable Functionality --------
;; Testing variable length arguments
(f)
;=>9
-;>>> deferable=True
+;>>> deferrable=True
;>>> optional=True
;;
-;; -------- Deferable/Optional Functionality --------
+;; -------- Deferrable/Optional Functionality --------
;; Testing comments in a file
(load-file "../tests/incB.mal")
;;;((fn* [q] (quasiquote ((unquote q) (quote (unquote q))))) (quote (fn* [q] (quasiquote ((unquote q) (quote (unquote q)))))))
;;;=>((fn* [q] (quasiquote ((unquote q) (quote (unquote q))))) (quote (fn* [q] (quasiquote ((unquote q) (quote (unquote q)))))))
-;>>> deferable=True
+;>>> deferrable=True
;;
-;; -------- Deferable Functionality --------
+;; -------- Deferrable Functionality --------
;; Testing ' (quote) reader macro
'7
;=>123
-;>>> deferable=True
+;>>> deferrable=True
;;
-;; -------- Deferable Functionality --------
+;; -------- Deferrable Functionality --------
;; Testing non-macro function
(not (= 1 1))
(map (fn* (x) (symbol? x)) (list 1 (quote two) "three"))
;=>(false true false)
-;>>> deferable=True
+;>>> deferrable=True
;;
-;; ------- Deferable Functionality ----------
+;; ------- Deferrable Functionality ----------
;; ------- (Needed for self-hosting) -------
;; Testing symbol and keyword functions
;=>false
-;>>> deferable=True
+;>>> deferrable=True
;;
-;; ------- Deferable Functionality ----------
+;; ------- Deferrable Functionality ----------
;; ------- (Needed for self-hosting) -------
;;