@Test public void testIsOpenChar() { System.out.println("isOpenChar"); OpenCloseCharList instance = new OpenCloseCharList(); boolean result = instance.isOpenChar('{'); assertTrue(result); result = instance.isOpenChar('('); assertTrue(result); result = instance.isOpenChar('"'); assertTrue(result); }
public boolean isOpenChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c) return true; } return false; }
OpenCloseCharList { public boolean isOpenChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c) return true; } return false; } }
OpenCloseCharList { public boolean isOpenChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c) return true; } return false; } OpenCloseCharList(); }
OpenCloseCharList { public boolean isOpenChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c) return true; } return false; } OpenCloseCharList(); boolean isOpenChar(char c); OpenCloseChar getOpenCloseChar(char c); boolean isCloseChar(char c); }
OpenCloseCharList { public boolean isOpenChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c) return true; } return false; } OpenCloseCharList(); boolean isOpenChar(char c); OpenCloseChar getOpenCloseChar(char c); boolean isCloseChar(char c);  }