* https://chemapps.stolaf.edu/jmol/docs/#writemodel
*/
StructureCommand sc = new StructureCommand(
- "write STATE \"" + filepath + "\"");
+ "write STATE \"" + Platform.escapeBackslashes(filepath) + "\"");
sc.setWaitNeeded(true);
return sc;
}
{
StructureCommandI cmd = testee.saveSession("/some/filepath");
assertEquals(cmd.getCommand(), "write STATE \"/some/filepath\"");
+ cmd = testee.saveSession("\\some\\filepath");
+ assertEquals(cmd.getCommand(), "write STATE \"\\\\some\\\\filepath\"");
}
@Test(groups = "Functional")