/** * Returns the text to place at the beginning and end of a * line to "comment" it in this programming language. * * @return The start and end strings to add to a line to "comment" * it out. A <code>null</code> value for either means there * is no string to add for that part. A value of * <code>null</code> for the array means this language * does not support commenting/uncommenting lines. */ public String[] getLineCommentStartAndEnd(int languageIndex) { return tokenMaker.getLineCommentStartAndEnd(languageIndex); }
@Test public void testJS_api_getLineCommentStartAndEnd() { TokenMaker tm = createTokenMaker(); Assert.assertEquals("//", tm.getLineCommentStartAndEnd(0)[0]); Assert.assertNull(tm.getLineCommentStartAndEnd(0)[1]); }
@Test public void testTS_api_getLineCommentStartAndEnd() { TokenMaker tm = createTokenMaker(); Assert.assertEquals("//", tm.getLineCommentStartAndEnd(0)[0]); Assert.assertNull(tm.getLineCommentStartAndEnd(0)[1]); }
@Test public void testJS_api_getLineCommentStartAndEnd() { TokenMaker tm = createTokenMaker(); Assert.assertEquals("//", tm.getLineCommentStartAndEnd(0)[0]); Assert.assertNull(tm.getLineCommentStartAndEnd(0)[1]); }
@Test public void testGetLineCommentStartAndEnd() { TokenMaker tm = createTokenMaker(); String[] startAndEnd = tm.getLineCommentStartAndEnd(0); Assert.assertArrayEquals(new String[] { "#", null }, startAndEnd); }
@Test public void testGetLineCommentStartAndEnd() { String[] startAndEnd = createTokenMaker().getLineCommentStartAndEnd(0); Assert.assertEquals("#", startAndEnd[0]); Assert.assertNull(startAndEnd[1]); }
@Test public void testGetLineCommentStartAndEnd() { String[] startAndEnd = createTokenMaker().getLineCommentStartAndEnd(0); Assert.assertEquals("#", startAndEnd[0]); Assert.assertNull(startAndEnd[1]); }
@Test public void testLess_getLineCommentStartAndEnd() { TokenMaker tm = createTokenMaker(); String[] startAndEnd = tm.getLineCommentStartAndEnd(0); Assert.assertEquals("//", startAndEnd[0]); Assert.assertEquals(null, startAndEnd[1]); }
@Test public void testGetLineCommentStartAndEnd() { TokenMaker tm = createTokenMaker(); String[] startAndEnd = tm.getLineCommentStartAndEnd(0); Assert.assertEquals(";", startAndEnd[0]); Assert.assertEquals(null, startAndEnd[1]); }
@Test public void testCss_getLineCommentStartAndEnd() { String[] startAndEnd = createTokenMaker().getLineCommentStartAndEnd(0); Assert.assertEquals("/*", startAndEnd[0]); Assert.assertEquals("*/", startAndEnd[1]); }
@Test public void test_api_getLineCommentStartAndEnd() { TokenMaker tm = createTokenMaker(); String[] startAndEnd = tm.getLineCommentStartAndEnd(0); Assert.assertEquals("#", startAndEnd[0]); Assert.assertEquals(null, startAndEnd[1]); }
@Test public void testGetLineCommentStartAndEnd() { String[] startAndEnd = createTokenMaker().getLineCommentStartAndEnd(0); Assert.assertEquals("%", startAndEnd[0]); Assert.assertNull(startAndEnd[1]); } }
/** * Returns the text to place at the beginning and end of a * line to "comment" it in the current programming language. * * @return The start and end strings to add to a line to "comment" * it out. A <code>null</code> value for either means there * is no string to add for that part. A value of * <code>null</code> for the array means this language * does not support commenting/uncommenting lines. */ public String[] getLineCommentStartAndEnd() { return tokenMaker.getLineCommentStartAndEnd(); }
/** * Returns the text to place at the beginning and end of a * line to "comment" it in this programming language. * * @return The start and end strings to add to a line to "comment" * it out. A <code>null</code> value for either means there * is no string to add for that part. A value of * <code>null</code> for the array means this language * does not support commenting/uncommenting lines. */ public String[] getLineCommentStartAndEnd(int languageIndex) { return tokenMaker.getLineCommentStartAndEnd(languageIndex); }
/** * Returns the text to place at the beginning and end of a * line to "comment" it in the current programming language. * * @return The start and end strings to add to a line to "comment" * it out. A <code>null</code> value for either means there * is no string to add for that part. A value of * <code>null</code> for the array means this language * does not support commenting/uncommenting lines. */ public String[] getLineCommentStartAndEnd() { return tokenMaker.getLineCommentStartAndEnd(); }