Skip to content

Support parameters with lazily-evaluated default values #7

Support parameters with lazily-evaluated default values

Support parameters with lazily-evaluated default values #7

GitHub Actions / Rspec Tests - 3.1 succeeded Oct 17, 2024 in 1s

18 passed, 0 failed and 0 skipped

Tests passed successfully

✅ test_results/rspec.xml

18 tests were completed in 8ms with 18 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
rspec 18✅ 8ms

✅ rspec

spec.unit.value_spec
  ✅ Value Value.new requires arguments
  ✅ Value Value.new requires members to be valid identifiers
  ✅ Value with a simple value can construct an instance with positional arguments
  ✅ Value with a simple value can construct an instance with keyword arguments
  ✅ Value with a simple value raises an error if unknown keyword arguments are provided
  ✅ Value with a simple value is immutable
  ✅ Value with a simple value can be mutated after duplicating
  ✅ Value with a simple value can update values via .with
  ✅ Value with optional arguments can construct an instance with positional arguments
  ✅ Value with optional arguments can construct an instance with keyword arguments
  ✅ Value with optional arguments can update values via .with
  ✅ Value with optional arguments raises an error unless all required positional arguments are provided
  ✅ Value with optional arguments raises an error unless all required keyword arguments are provided
  ✅ Value with lazy defaults can construct an instance with positional lazy arguments
  ✅ Value with lazy defaults can construct an instance with keyword lazy arguments
  ✅ Value with a class body can override the constructor and call super
  ✅ Value with a class body can define methods
  ✅ Value with a class body only invokes the class body once