Clojure

Tests for protocols and types, round 1

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.2
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

I have included a patch with my original tests (pre deftype/defrecord split) plus a final patch to get things passing with the latest greatest.

The final commit is worth looking at. The reduced dynamism of deftype is visible, in that I used to be able to redefine a type multiple times in a series of tests, and am now relying on per-test named types. I think this tradeoff is worth it for unification with the host type system. But a bigger issue occurs when working at the REPL: you can reload types, but not refer to the reloaded ones.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: