Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
As written, I think the test requires a comparison between xs:integer and xs:untypedAtomic and those aren't comparable. (The integer 1 must be compared against 'C' and 'A'.) This could be a limitation of my implementation, but I'm not sure that's the case.
I propose to rewrite the key to avoid this problem: