Skip to content

Fix test failures: list equality and library import priority#845

Merged
mengwong merged 1 commit intomainfrom
mengwong/test-fails
Mar 15, 2026
Merged

Fix test failures: list equality and library import priority#845
mengwong merged 1 commit intomainfrom
mengwong/test-fails

Conversation

@mengwong
Copy link
Copy Markdown
Contributor

Summary

  • List equality: Add missing ValNil/ValCons cross-comparison cases in runBinOpEquals. Pattern matching WHEN EMPTY against a non-empty list was throwing "equality on unsupported types" instead of returning False. Fixes legal-persons-tests.l4.
  • Library import priority: Reorder search so Cabal's data-dir is checked before XDG (~/.local/share/jl4/libraries/). Stale XDG-installed libraries were shadowing current source tree versions during development, causing 7 test failures (6 excel-date + ceo-performance-award).

Test plan

  • cabal test all — 847 examples, 0 failures across all 6 test suites
  • Verified all 8 previously failing tests now pass
  • No regressions

🤖 Generated with Claude Code

- Add missing ValNil/ValCons cross-comparison cases in runBinOpEquals,
  fixing pattern matching on non-empty lists against EMPTY
- Prioritize Cabal data-dir over XDG for library resolution, preventing
  stale installed libraries from shadowing source tree versions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mengwong mengwong merged commit cd6852e into main Mar 15, 2026
5 checks passed
@mengwong mengwong deleted the mengwong/test-fails branch March 15, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant