summaryrefslogtreecommitdiffstats
path: root/cadr.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-23 02:20:59 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-23 02:20:59 -0700
commitf248e5ab1e0633c96c048116ba74305ec9664998 (patch)
tree4ccc84f323901a10cd69476a8acb02f69d65a68e /cadr.h
parent1e43bc3bc6158a918736adf96792815afba268da (diff)
downloadtxr-f248e5ab1e0633c96c048116ba74305ec9664998.tar.gz
txr-f248e5ab1e0633c96c048116ba74305ec9664998.tar.bz2
txr-f248e5ab1e0633c96c048116ba74305ec9664998.zip
ifa: fix broken/invalid test case.
* tests/012/ifa.tl: The "ambiguous" test case is not ambiguous at all. The reason it was yielding :error previously was not due to the ifa macro identifying an ambiguity but due to the funcion < not accepting nil arguments. Since < now does accept nil arguments, this test broke. Fixing this test, and adding one that tests for the ambiguous case: multiple it-candidates being rejected by ifa at expansion time. * tests/common.tl (vtest): This macro requires maintenance. To test for expansion-time failure, we must use expand, not just macroexpand. In this case, the (ifa ...) macro call is wrapped in a (let ...) so macroexpand won't do it. Secondly, the expected value is an quote expression that must be evaluated if we need its value in vtest itself. Otherwise it won't compare equal to :error, since it is actually (quote :error).
Diffstat (limited to 'cadr.h')
0 files changed, 0 insertions, 0 deletions