I'm writing a list of inputs and outputs for to be compared in unit tests.
var equals = [
//input //output
["name:(John Smith)", "name:(John~ Smith~)" ],
["name:Jon~0.1", "name:Jon~0.1" ],
["Jon", "Jon~" ],
["Jon Smith~0.1", "Jon~ Smith~0.1" ],
["Jon AND Bob", "Jon~ AND Bob~" ],
["Jon AND Bob~0.1", "Jon~ AND Bob~0.1" ],
["Steve^9 Jon", ] "Steve^9 Jon~" ]
];
I've formatted it as such, so it's easy to compare and read. However, it's unconventional.
Is this a bad idea?