|
From: Markus B. <mba...@us...> - 2005-10-23 19:34:10
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32758/src/org/rubypeople/rdt/internal/core/builder Modified Files: TC_IndexUpdater.java Log Message: new test case for nested classes, like module::class1::class2 Index: TC_IndexUpdater.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/builder/TC_IndexUpdater.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TC_IndexUpdater.java 19 Oct 2005 00:33:05 -0000 1.3 --- TC_IndexUpdater.java 23 Oct 2005 19:34:03 -0000 1.4 *************** *** 93,96 **** --- 93,104 ---- } + public void testTreeWithMoreNesting() throws Exception { + Node node = parseCode("module Foo\nclass Bar\nclass InnerBar\nend\nend\nend\n"); + + updater.update(file,node); + + symbolIndex.assertFlushed(file.getFullPath()); + symbolIndex.assertAdded(new ClassSymbol("Foo::Bar::InnerBar"), file, new RdtPosition(2, 3, 35, 36)); + } private Node parseCode(String code) throws CoreException { |