@Test public void testPrint() { NodynConfig config = config("--print 4+4"); assertEquals("4+4", config.getEvalString()); assertTrue(config.getPrint()); }
@Test public void testVersion() { NodynConfig config = config("--version --foo -bar -e"); assertTrue(config.isVersion()); }
@Test public void testExecWithArg() { NodynConfig config = config("--eval 4+4"); assertEquals("4+4", config.getEvalString()); assertFalse(config.getPrint()); }
@Test public void testHelp() { NodynConfig config = config("--help --foo -bar"); assertTrue(config.isHelp()); }