ajvincent / composite-collection

Composing Maps, WeakMaps, Sets and WeakSets into compiled classes
Mozilla Public License 2.0
1 stars 0 forks source link

Special construction test: every combination of 2 map keys and 2 set keys should result in a class #39

Closed ajvincent closed 3 years ago

ajvincent commented 3 years ago

spec/integration/combinations.mjs should:

  1. Create configurations out of combinations
  2. Write generated code for each configuration to a temporary file
  3. Load the file as a module and confirm the module exports a syntactically valid class
  4. Delete the temporary file

This should produce 16 unique classes.

For good measure, I can also include combinations classes for 3 levels of map keys (8) and 3 levels of set keys (8).

ajvincent commented 3 years ago

Strong maps of weak sets are no longer allowable (see #41). So that will reduce the surface by a bit.