Hi
I created the FluentSwiftAssertions framework to improve readability of test assertions. (You can find it on githup)
The problem I'm struggeling with is somehow strange. In order to be able to write an assertion in the following way:
aBoolVariable.should.beTrue()I implemented an extension:
extension Bool {
public var should: Bool {
return self
}
public func beTrue(_ message: @autoclosure () -> .......(this is just the first part of the extension)
The strange tning now is, if I include the extension on code level the following two statements are compiled without errors:
aBoolVaraible.beTrue()
aBoolVaraible.should.beTrue()However, when I use the framework instead of the source code the first line is ok but the second line creates the following compile error.
'should' is inaccessible due to 'internal' protection level
I have no clue how to solve this issue.