Open cfcurtis opened 1 year ago
Another unit test issue, for example in ac12_04_5
of the Chapter Assessment in Exceptions: correcting the code and running the unit test results in Error: InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('btn btn-info') contains HTML space characters, which are not valid in tokens.
Things tried:
assertTrue(True)
- tests work without issueassertEquals(['b', 'd', 'g', 'Error', 'k', 'o', 'r', 'Error', 'v', 'x', 'Error'], ['b', 'd', 'g', 'Error', 'k', 'o', 'r', 'Error', 'v', 'x', 'Error'])
- same DOMTokenList errorassertEquals([1, 2, 3], [1, 2, 3])
- tests work without issueassertEquals(['a', 'b', 'c'], ['a', 'b', 'c'])
- tests work without issueassertEquals(attempt, attempt)
- same DOMTokenList errorIt seems as though there's a specific character(s) that it doesn't like in the list, but I haven't figured out which one it is.
Some unit tests seem to be missing indentation. For example, I've fixed the ones in Fuctions, but it's something to look out for.
Indentation should be as follows:
Similarly, there are some hard line wraps that I suspect will also cause syntax errors.