mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-10-31 16:21:45 +01:00 
			
		
		
		
	codetools: test multidim[,].sub
git-svn-id: trunk@61961 -
This commit is contained in:
		
							parent
							
								
									d63ada2dc8
								
							
						
					
					
						commit
						fc24b68aa6
					
				| @ -103,6 +103,7 @@ type | ||||
|     procedure TestFindDeclaration_BracketOpen; | ||||
|     procedure TestFindDeclaration_AnonymProc; | ||||
|     procedure TestFindDeclaration_AnonymProc_ExprDot; | ||||
|     procedure TestFindDeclaration_ArrayMultiDimDot; | ||||
|     // test all files in directories: | ||||
|     procedure TestFindDeclaration_FPCTests; | ||||
|     procedure TestFindDeclaration_LazTests; | ||||
| @ -1000,6 +1001,24 @@ begin | ||||
|   FindDeclarations(Code); | ||||
| end; | ||||
| 
 | ||||
| procedure TTestFindDeclaration.TestFindDeclaration_ArrayMultiDimDot; | ||||
| begin | ||||
|   StartProgram; | ||||
|   Add([ | ||||
|   'type', | ||||
|   '  TmyClass = class', | ||||
|   '    Field: integer;', | ||||
|   '  end;', | ||||
|   '  TArray1 = array of TmyClass;', | ||||
|   '  TArray2 = array of TArray1;', | ||||
|   'var', | ||||
|   '  tmp: TArray2;', | ||||
|   'begin', | ||||
|   '  tmp[0,0].Field{declaration:tmyclass.field};', | ||||
|   'end.']); | ||||
|   FindDeclarations(Code); | ||||
| end; | ||||
| 
 | ||||
| procedure TTestFindDeclaration.TestFindDeclaration_FPCTests; | ||||
| begin | ||||
|   TestFiles('fpctests'); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 mattias
						mattias