-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working in finish the README. Changed 'blindtex' module to 'tex2all' …
…for better undestanding. Configure Setup to allow cli use of blindtex.
- Loading branch information
1 parent
49e4623
commit f6b3226
Showing
6 changed files
with
42 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
# - "2.7" | ||
- "3.6" | ||
before_install: | ||
- pip install pytest pytest-cov | ||
|
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
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,28 +1,28 @@ | ||
import pytest | ||
from blindtex import blindtex | ||
from blindtex import tex2all | ||
|
||
def test_read_equation_list(): | ||
equation = "1+2" | ||
expected_reading = ['1','+','2'] | ||
reading = blindtex.read_equation_list(equation) | ||
reading = tex2all.read_equation_list(equation) | ||
assert expected_reading == reading | ||
|
||
equation = "\\frac{1}{2}" | ||
expected_reading = ['1','over','2'] | ||
reading = blindtex.read_equation_list(equation) | ||
reading = tex2all.read_equation_list(equation) | ||
assert expected_reading == reading | ||
|
||
equation = "\\int_0^2 x^4 dx" | ||
expected_reading = ['int', 'from', '0', 'to', '2', 'of', 'x', 'super', '4', 'd', 'x'] | ||
reading = blindtex.read_equation_list(equation) | ||
reading = tex2all.read_equation_list(equation) | ||
assert expected_reading == reading | ||
|
||
equation = "\\sqrt[5]{x+b}" | ||
expected_reading = ['root','5','of','x','+','b','endroot'] | ||
reading = blindtex.read_equation_list(equation) | ||
reading = tex2all.read_equation_list(equation) | ||
assert expected_reading == reading | ||
|
||
equation = "\\sqrt{x+b}" | ||
expected_reading = ['squarerootof','x','+','b','endroot'] | ||
reading = blindtex.read_equation_list(equation) | ||
reading = tex2all.read_equation_list(equation) | ||
assert expected_reading == reading |