On Thu, Nov 05, 2020 at 06:41:14PM +0000, Thiede, Christoph wrote:
Good catch! That's clearly a bug IMO. #extension should use #copyAfterLast: rather than #copyAfter:.
On the other, FSReferenceTest >> #testBaseAndExtension explicitly defines a test where it says:
"Note that the extension of a complex extension starts from the first period up until the end"
The underlying problem appears to be that someone neglected to write a test for #extension.
The testBaseAndExtension test appears to be a later addition, and it may be that the test simply documents an existing bug, so the test itself may be wrong.
I am attaching a proposed test based on Tony's example.
Dave