+
+ p.SetCmdLine("-n");
+ CPPUNIT_ASSERT_EQUAL(0, p.Parse(false) );
+ CPPUNIT_ASSERT_EQUAL(wxCMD_SWITCH_NOT_FOUND, p.FoundSwitch("a") );
+ CPPUNIT_ASSERT_EQUAL(wxCMD_SWITCH_ON, p.FoundSwitch("n") );
+
+ p.SetCmdLine("-n-");
+ CPPUNIT_ASSERT_EQUAL(0, p.Parse(false) );
+ CPPUNIT_ASSERT_EQUAL(wxCMD_SWITCH_OFF, p.FoundSwitch("neg") );
+
+ p.SetCmdLine("--neg");
+ CPPUNIT_ASSERT_EQUAL(0, p.Parse(false) );
+ CPPUNIT_ASSERT_EQUAL(wxCMD_SWITCH_ON, p.FoundSwitch("neg") );
+
+ p.SetCmdLine("--neg-");
+ CPPUNIT_ASSERT_EQUAL(0, p.Parse(false) );
+ CPPUNIT_ASSERT_EQUAL(wxCMD_SWITCH_OFF, p.FoundSwitch("n") );