summaryrefslogtreecommitdiffstats
path: root/tests/012/case.tl
Commit message (Collapse)AuthorAgeFilesLines
* case macros: bug in singleton key optimization.Kaz Kylheku2021-12-081-0/+32
* eval.c (me_case): Reduce (key) to key only if key is an atom. Otherwise we reduce ((a b c)), which is a single list-valued key to (a b c), which looks like three keys. This was introduced on Oct 25, 2017 in commit b72c9309c8d8f1af320dce616a69412510531b48, making it a regression. * tests/012/case.tl: New file. The last test case fails without this bugfix. The others pass either way.