> On Dec 21, 2017, at 10:33 AM, Jordan Rose via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> The main blocker was that such a case becomes untestable (see also "Testing 
> invalid cases").

You can always make it testable through appropriate factoring—for example, have 
the `future` case call a helper function, and then explicitly invoke that 
helper function to test its behavior. That won't give you coverage of the 
`future` case itself, but there's nothing on the table that will (not even 
`default` when all the existing cases are covered).

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to