Is that a bug?
# multiplatform
n
Is that a bug?
b
natpryce: could you show your identifiers?
n
They were tests. Like…
Copy code
fun `a test with spaces in its name`() { .. }
and
Copy code
fun `a test with spaces, and a comma`() { ... }
worse, IntellJ offers a refactoring to convert camelCaseNames to ``backticks and spaces``, but that refactoring stops the code compiling on the JS target
b
please file an issue about wrong IDEA’s suggestion
n
IntelliJ’s suggestion is not a problem. In JS the test gets compiled to a QUnit test, like this:
Copy code
QUnit.test('ByteArraySpliceTest.can_mutate_the_replaced_bytes', function () {
    (new ByteArraySpliceTest()).can_mutate_the_replaced_bytes();
  });
and it’s fine for the test name to contain spaces.
b
how do you get it if members with spaces prohibited?
n
Exactly! Tests are handled as a special case by the compiler. It should allow spaces in test function names. And then IntelliJ’s refactoring (which only applies to tests) would be appropriate.