Build fails in Xcode 12 beta 6 due to relative precedence of operators ?: and |.
I also modified the test to be more straightforward what the result tested withing that assert should be, instead of having the same logic duplicated in the method and in the test.
Build fails in Xcode 12 beta 6 due to relative precedence of operators
?:
and|
. I also modified the test to be more straightforward what the result tested withing that assert should be, instead of having the same logic duplicated in the method and in the test.