Skip to content

Commit

Permalink
Refactored the parser PDE tests to split a test
Browse files Browse the repository at this point in the history
darcs-hash:20060118165510-49d33-477039ff94a53d86d424c7ea29cd44e5b6d9190e.gz
  • Loading branch information
thiagoarrais committed Jan 18, 2006
1 parent 0423c75 commit 57a4c85
Showing 1 changed file with 9 additions and 3 deletions.
Expand Up @@ -100,10 +100,16 @@ public void testTypeSignatures() throws Exception {
assertEquals( 2, ts2.getIdentifiers().length );
assertEquals( "idf2", ts2.getIdentifiers()[ 0 ] );
assertEquals( "idf3", ts2.getIdentifiers()[ 1 ] );
}

public void testPatternBidings() throws Exception {
IModule module = loadMainModule( "005" );
IDeclaration[] decls = module.getDeclarations();
assertEquals( 4, decls.length );

IPatternBinding pb1 = ( IPatternBinding )decls[ 3 ];
assertEquals( 9, pb1.getSourceLocation().getLine() );
assertEquals( 0, pb1.getSourceLocation().getColumn() );
IPatternBinding pb1 = ( IPatternBinding )decls[ 3 ];
assertEquals( 9, pb1.getSourceLocation().getLine() );
assertEquals( 0, pb1.getSourceLocation().getColumn() );
}

public void testSimpleExports() throws Exception {
Expand Down

0 comments on commit 57a4c85

Please sign in to comment.