@@ -17,7 +17,7 @@ let symbols: Map<string, Array<SystemVerilogSymbol>>;
1717const testFolderLocation = '../../src/test' ;
1818
1919const uri = Uri . file ( path . join ( __dirname , testFolderLocation , 'test-files' , 'ModuleInstantiator.test.1.v' ) ) ;
20- const documentSymbols = [ 'adder' , 'bar' , 'akker' , 'accer' , 'anner' , 'atter' , 'apper' , 'golden' ] ;
20+ const documentSymbols = [ 'adder' , 'bar' , 'akker' , 'accer' , 'anner' , 'atter' , 'apper' , 'golden' , 'abber' , 'affer' ] ;
2121
2222const nonSVUri = Uri . file ( path . join ( __dirname , testFolderLocation , 'test-files' , 'foo.txt' ) ) ;
2323
@@ -31,10 +31,10 @@ suite('indexer_map Tests', () => {
3131 assert . strictEqual ( symbols . size , 4 ) ;
3232 let count = await indexer . addDocumentSymbols ( sVDocument , symbols ) ;
3333
34- assert . strictEqual ( count , 10 ) ;
34+ assert . strictEqual ( count , 12 ) ;
3535 assert . strictEqual ( symbols . size , 5 ) ;
36- assert . strictEqual ( symbols . get ( uri . fsPath ) . length , 10 ) ;
37- assert . strictEqual ( getSymbolsCount ( ) , 23 ) ;
36+ assert . strictEqual ( symbols . get ( uri . fsPath ) . length , 12 ) ;
37+ assert . strictEqual ( getSymbolsCount ( ) , 25 ) ;
3838
3939 documentSymbols . forEach ( ( symbolName ) => {
4040 if ( ! symbolExists ( symbolName ) ) {
@@ -47,28 +47,28 @@ suite('indexer_map Tests', () => {
4747 assert . strictEqual ( count , 0 ) ;
4848 assert . strictEqual ( symbols . size , 5 ) ;
4949 assert . strictEqual ( symbols . get ( nonSVUri . fsPath ) , undefined ) ;
50- assert . strictEqual ( getSymbolsCount ( ) , 23 ) ;
50+ assert . strictEqual ( getSymbolsCount ( ) , 25 ) ;
5151
5252 // undefined/null document
5353 count = await indexer . addDocumentSymbols ( undefined , symbols ) ;
5454 assert . strictEqual ( count , 0 ) ;
5555 assert . strictEqual ( symbols . size , 5 ) ;
56- assert . strictEqual ( getSymbolsCount ( ) , 23 ) ;
56+ assert . strictEqual ( getSymbolsCount ( ) , 25 ) ;
5757
5858 count = await indexer . addDocumentSymbols ( sVDocument , undefined ) ;
5959 assert . strictEqual ( count , 0 ) ;
6060 assert . strictEqual ( symbols . size , 5 ) ;
61- assert . strictEqual ( getSymbolsCount ( ) , 23 ) ;
61+ assert . strictEqual ( getSymbolsCount ( ) , 25 ) ;
6262
6363 count = await indexer . addDocumentSymbols ( undefined , undefined ) ;
6464 assert . strictEqual ( count , 0 ) ;
6565 assert . strictEqual ( symbols . size , 5 ) ;
66- assert . strictEqual ( getSymbolsCount ( ) , 23 ) ;
66+ assert . strictEqual ( getSymbolsCount ( ) , 25 ) ;
6767
6868 count = await indexer . addDocumentSymbols ( null , symbols ) ;
6969 assert . strictEqual ( count , 0 ) ;
7070 assert . strictEqual ( symbols . size , 5 ) ;
71- assert . strictEqual ( getSymbolsCount ( ) , 23 ) ;
71+ assert . strictEqual ( getSymbolsCount ( ) , 25 ) ;
7272 } ) ;
7373
7474 test ( 'test #2: removeDocumentSymbols' , async ( ) => {
@@ -80,9 +80,9 @@ suite('indexer_map Tests', () => {
8080 assert . strictEqual ( symbols . size , 4 ) ;
8181 let count = await indexer . addDocumentSymbols ( sVDocument , symbols ) ;
8282
83- assert . strictEqual ( count , 10 ) ;
83+ assert . strictEqual ( count , 12 ) ;
8484 assert . strictEqual ( symbols . size , 5 ) ;
85- assert . strictEqual ( getSymbolsCount ( ) , 23 ) ;
85+ assert . strictEqual ( getSymbolsCount ( ) , 25 ) ;
8686
8787 count = indexer . removeDocumentSymbols ( sVDocument . uri . fsPath , symbols ) ;
8888
@@ -92,7 +92,7 @@ suite('indexer_map Tests', () => {
9292 }
9393 } ) ;
9494
95- assert . strictEqual ( count , - 10 ) ;
95+ assert . strictEqual ( count , - 12 ) ;
9696 assert . strictEqual ( symbols . size , 4 ) ;
9797 assert . strictEqual ( getSymbolsCount ( ) , 13 ) ;
9898
0 commit comments