The expression (list (ConsPair 'car 'cdr)) was producing [HySymbol("car"), "c", "d", "r"], i.e. mistakenly iterating over the elements in the string "cdr". This commit fixes that and now yields [HySymbol("car")].
Also, the assert statements were changed to considerably more informative ones, and there's a minor change/update to one of the docstrings.
The expression
(list (ConsPair 'car 'cdr))
was producing[HySymbol("car"), "c", "d", "r"]
, i.e. mistakenly iterating over the elements in the string "cdr". This commit fixes that and now yields[HySymbol("car")]
.Also, the assert statements were changed to considerably more informative ones, and there's a minor change/update to one of the docstrings.