@Test
public void testSplitFromInlineComment() {

	String[][] beforeToAfter = {
		{ "import facets.rcf;", "# import the facets" },
		{ "import facets.rcf;", "\t# import the facets" },
		{ "import facets.rcf;", "#" },
		{ "import facets.rcf;", "" },
		{ "import facets.rcf;     ", "" },
		{ "import facets.rcf;", " #### import the facets" },
		{ "", " #### import the facets" },
		{ "", " # " },
		{ "", "#" }
	};
	// Parsing comments
	for( String[] line : beforeToAfter ) {
		FileDefinitionParser parser = new FileDefinitionParser( null, false );
		String theLine = line[ 0 ] + line[ 1 ];
		String[] parts = parser.splitFromInlineComment( theLine );
		Assert.assertEquals( "Test failed for '" + theLine + "'", line[ 0 ], parts[ 0 ]);
		Assert.assertEquals( "Test failed for '" + theLine + "'", line[ 1 ], parts[ 1 ]);
	}
	// Ignoring comments
	for( String[] line : beforeToAfter ) {
		FileDefinitionParser parser = new FileDefinitionParser( null, true );
		String theLine = line[ 0 ] + line[ 1 ];
		String[] parts = parser.splitFromInlineComment( theLine );
		Assert.assertEquals( "Test failed for '" + theLine + "'", line[ 0 ], parts[ 0 ]);
		Assert.assertEquals( "Comment should be empty for '" + theLine + "'", "", parts[ 1 ]);
	}
}