1
0
Fork 0
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:
Shlomi Fish 2018-03-12 22:19:18 +02:00
parent f18c394c33
commit d0513b732f
3 changed files with 21 additions and 3 deletions

View file

@ -11,6 +11,7 @@ install:
- python3 -mpip install flake8
- python3 -mpip install random2
- python3 -mpip install py2exe
- python3 -mpip install pycotap
- python3 -mpip install six
- python3 -mpip install Pillow
- perl -v

View file

@ -6,8 +6,8 @@ before_install:
- sudo dpkg-divert --local --divert /usr/bin/ack --rename --add /usr/bin/ack-grep
install:
- sudo cpanm Perl::Tidy Test::Code::TidyAll Test::Differences Test::TrailingSpace
- "`which python3` -m pip install --upgrade --user flake8 random2 six"
- "sudo /usr/bin/python3 -m pip install --upgrade random2 six"
- "`which python` -m pip install --upgrade --user random2 six"
- "`which python3` -m pip install --upgrade --user flake8 pycotap random2 six"
- "sudo /usr/bin/python3 -m pip install --upgrade pycotap random2 six"
- "`which python` -m pip install --upgrade --user pycotap random2 six"
- which python
script: "sh -x scripts/travis-ci-build"

View 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)