-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafael C. Carrasco
committed
Jul 22, 2014
1 parent
dd86192
commit cf7985e
Showing
7 changed files
with
2,170 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...al/metadata/marc/AuthorityRecordTest.java → ...al/MARCauthority/AuthorityRecordTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/test/java/com/cervantesvirtual/MARCauthority/CreatorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
|
||
package com.cervantesvirtual.MARCauthority; | ||
|
||
import junit.framework.TestCase; | ||
|
||
/** | ||
* | ||
* @author rafa | ||
*/ | ||
public class CreatorTest extends TestCase { | ||
|
||
/** | ||
* Test of compatible method, of class Creator. | ||
*/ | ||
public void testCompatible() { | ||
System.out.println("compatible"); | ||
Creator instance = new Creator("Paganini, Paganinus de,"); | ||
Creator other = new Creator("Paganinus de Paganini"); | ||
assert(instance.compatible(other)); | ||
|
||
} | ||
|
||
/** | ||
* Test of similarity method, of class Creator. | ||
*/ | ||
public void testSimilarity() { | ||
System.out.println("similarity"); | ||
|
||
Creator creator1 = new Creator("Paganinis, Paganinus de,"); | ||
Creator creator2 = new Creator("Paganini, Paganinus de"); | ||
double expResult = 1.0/3; | ||
double result = creator1.similarity(creator2); | ||
assertEquals(expResult, result, 0.01); | ||
} | ||
|
||
} |