Totally agree. The problem/solution is superficial. A real solution requires importing a list valid TLDs. PSL by Mozilla is probably a good place to start
What should this test case return? True or False?
For me, it returns False. And when I try the reversing the list and then checking the structure, I get an error there.
I am not sure how to handle this. I raised an issue, but maybe I misunderstood?
The test case when you hit submit should be re-written as the way it is written is confusing. I thought it was saying we couldn't use ==...
A suggestion could be that you are just testing for this case: [1,'[',']'].same_structure_as( ['[',']',1] ) (Rather than saying you are using a common workaround).
Totally agree. The problem/solution is superficial. A real solution requires importing a list valid TLDs. PSL by Mozilla is probably a good place to start
What should this test case return? True or False?
For me, it returns False. And when I try the reversing the list and then checking the structure, I get an error there.
I am not sure how to handle this. I raised an issue, but maybe I misunderstood?
The test case when you hit submit should be re-written as the way it is written is confusing. I thought it was saying we couldn't use
==
...A suggestion could be that you are just testing for this case:
[1,'[',']'].same_structure_as( ['[',']',1] )
(Rather than saying you are using a common workaround).