Talk:Z12711

Uut Wikifunctions
Laatste reactie: 2 maanden geleden door GrounderUK in het onderwerp "bigint are forbidden in JSON.stringify"

third test fails?

@Habst: I have no idea why, but this implementation doesn't work for the third test case. Do you know? --99of9 (talk) 08:59, 23 January 2024 (UTC)Reageren

@99of9 It seems to be because of the way that code points are handled in python versus Javascript. In Python they are "ZObjects" which is a special class which probably has its own __eq__ method so that it works with the "in" keyword. But in JS, there is no real equivalent to __eq__ that works with the builtin includes. So we would have to have a more complex implementation. --Habst (talk) 12:42, 23 January 2024 (UTC)Reageren

"bigint are forbidden in JSON.stringify"

Natural numbers are implemented as bigint, so this implementation now fails with the error "bigint are forbidden in JSON.stringify". I am not going to try to fix this but am disconnecting this implementation for now. There are currently two test cases connected that test with Natural numbers and currently pass with the Python implementation. GrounderUK (talk) 08:37, 16 March 2024 (UTC)Reageren

@Habst Do you want to take a look at this? GrounderUK (talk) 08:40, 16 March 2024 (UTC)Reageren
@GrounderUK, I fixed it in Special:Diff/90147. But it says "User does not have permission to edit" when I try to connect it to contains (Z12696). Is there a special permission I need? --Habst (talk) 15:26, 16 March 2024 (UTC)Reageren
Yes. Functioneer: Wikifunctions:Requests for user groups#Functioneer. I connected it for you, so that’s Done. Thank you for the fix! GrounderUK (talk) 16:36, 16 March 2024 (UTC)Reageren