mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Add a test.
This commit is contained in:
parent
f18c394c33
commit
d0513b732f
3 changed files with 21 additions and 3 deletions
|
@ -11,6 +11,7 @@ install:
|
||||||
- python3 -mpip install flake8
|
- python3 -mpip install flake8
|
||||||
- python3 -mpip install random2
|
- python3 -mpip install random2
|
||||||
- python3 -mpip install py2exe
|
- python3 -mpip install py2exe
|
||||||
|
- python3 -mpip install pycotap
|
||||||
- python3 -mpip install six
|
- python3 -mpip install six
|
||||||
- python3 -mpip install Pillow
|
- python3 -mpip install Pillow
|
||||||
- perl -v
|
- perl -v
|
||||||
|
|
|
@ -6,8 +6,8 @@ before_install:
|
||||||
- sudo dpkg-divert --local --divert /usr/bin/ack --rename --add /usr/bin/ack-grep
|
- sudo dpkg-divert --local --divert /usr/bin/ack --rename --add /usr/bin/ack-grep
|
||||||
install:
|
install:
|
||||||
- sudo cpanm Perl::Tidy Test::Code::TidyAll Test::Differences Test::TrailingSpace
|
- sudo cpanm Perl::Tidy Test::Code::TidyAll Test::Differences Test::TrailingSpace
|
||||||
- "`which python3` -m pip install --upgrade --user flake8 random2 six"
|
- "`which python3` -m pip install --upgrade --user flake8 pycotap random2 six"
|
||||||
- "sudo /usr/bin/python3 -m pip install --upgrade random2 six"
|
- "sudo /usr/bin/python3 -m pip install --upgrade pycotap random2 six"
|
||||||
- "`which python` -m pip install --upgrade --user random2 six"
|
- "`which python` -m pip install --upgrade --user pycotap random2 six"
|
||||||
- which python
|
- which python
|
||||||
script: "sh -x scripts/travis-ci-build"
|
script: "sh -x scripts/travis-ci-build"
|
||||||
|
|
17
tests/board_gen/latin1_conv_unit.py
Normal file
17
tests/board_gen/latin1_conv_unit.py
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# Written by Shlomi Fish, under the MIT Expat License.
|
||||||
|
|
||||||
|
# imports
|
||||||
|
import unittest
|
||||||
|
from pysollib.mfxutil import latin1_normalize
|
||||||
|
|
||||||
|
|
||||||
|
class MyTests(unittest.TestCase):
|
||||||
|
def test_output(self):
|
||||||
|
self.assertEqual(latin1_normalize('HELLO%%good'), 'hellogood')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
from pycotap import TAPTestRunner
|
||||||
|
suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
|
||||||
|
TAPTestRunner().run(suite)
|
Loading…
Add table
Reference in a new issue