Re: [swift-evolution] Testing access level, final, and static

2016-09-21 Thread Dave Abrahams via swift-evolution
on Wed Sep 21 2016, Benjamin Spratling wrote: > Howdy, > As I understand it, In Swift 3, a lack of encapsulation is testable, > but specific keywords to protect a designed encapsulation can’t be > introspected, and thus encapsulation is fragile, i.e. not protectable > by unit tests. > > For inst

[swift-evolution] Testing access level, final, and static

2016-09-21 Thread Benjamin Spratling via swift-evolution
Howdy, As I understand it, In Swift 3, a lack of encapsulation is testable, but specific keywords to protect a designed encapsulation can’t be introspected, and thus encapsulation is fragile, i.e. not protectable by unit tests. For instance, we can write unit-tests that determine if a member's a