icerpc / slicec

The Slice compiler library
Apache License 2.0
13 stars 5 forks source link

Add Comprehensive Testing of Optional Types #551

Closed InsertCreativityHere closed 1 year ago

InsertCreativityHere commented 1 year ago

This PR adds a comprehensive list of tests for optional types (addressing https://github.com/icerpc/slicec/issues/436).

There were some places that were testing optionals, most of them were only tangential and were left as-is, for example, type-aliases can't use an optional underlying type, or enums can't use an optional backing type. These tests were specific to a type and just happened to involve optionals, so best to leave them alone.

2 tests were moved though: