ner-study/dataset.test.py

9 lines
230 B
Python
Raw Permalink Normal View History

2022-02-13 17:34:03 +09:00
from dataset import padding_array
import unittest
class Test(unittest.TestCase):
def test_padding_array(self):
self.assertEqual(padding_array([[1,2],[3]]),[[1,2],[3,0]])
2022-02-13 17:34:03 +09:00
if __name__ == '__main__':
unittest.main()