Yes, yes, I want to take a part in this bikeshed as well!

The tests by themselves are ok — we have weird corner cases and some broken-code-formatting checks in the jsbeautifier code as well. The strong uneasiness I myself feel is that the tests need to clearly cover the proper input first, but currently there are no tests that make sure that the beautifier formats a clean, _proper_ css code as well.

I.e something like this would make the tests much more structured and clear:

    // selector support
    btc("#foo :hover {,,,}", "#foo  :hover {...}");
    ...
    // handle some garbage as well, just because we can
    btc(" : : selection", "::selection")

...and then we might have a separate discussion WHY would we ever want to test the garbage cases and what do we achieve by that.