-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug that was causing compilation errors for tables from file system
see #15
- Loading branch information
Showing
6 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
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
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,24 @@ | ||
package org.liblouis; | ||
|
||
import java.io.File; | ||
|
||
import org.junit.Test; | ||
import static org.junit.Assert.assertEquals; | ||
|
||
public class TableFromFileSystemTest { | ||
|
||
@Test | ||
public void testTableFromFileSystemAbsolutePath() throws Exception { | ||
Translator translator = new Translator(new File(tablesDir, "foobar.tbl").getAbsolutePath()); | ||
assertEquals( | ||
"foobar", | ||
translator.translate("foobar", null, null, null).getBraille()); | ||
} | ||
|
||
private final File tablesDir; | ||
|
||
public TableFromFileSystemTest() { | ||
File testRootDir = new File(this.getClass().getResource("/").getPath()); | ||
tablesDir = new File(testRootDir, "tables"); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#+locale: foo | ||
|
||
uplow Aa 18,1 | ||
uplow Bb 128,12 | ||
uplow Cc 148,14 | ||
|
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,3 @@ | ||
#+locale: foo | ||
|
||
include foobar.cti |