annotate tests/test_split.py @ 49:643c8e92e71e

wip
author Jeff Hammel <k0scist@gmail.com>
date Sat, 16 May 2015 20:13:12 -0700
parents 03ce88daa98d
children 1284c99a94fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 """
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 unit tests for `textshaper.split`
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 """
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 # imports
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 import unittest
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 from textshaper import split
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 class SplitUnitTest(unittest.TestCase):
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 def test_findall(self):
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 """test basic"""
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17
49
Jeff Hammel <k0scist@gmail.com>
parents: 48
diff changeset
18 # 012345678901
Jeff Hammel <k0scist@gmail.com>
parents: 48
diff changeset
19 string = 'a cat, a bat'
48
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20
49
Jeff Hammel <k0scist@gmail.com>
parents: 48
diff changeset
21 retval = split.findall(string, 'a')
Jeff Hammel <k0scist@gmail.com>
parents: 48
diff changeset
22
48
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 if __name__ == '__main__':
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 unittest.main()
03ce88daa98d start test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25