Skip to content

Commit dd75bfa

Browse files
committed
initial tests commit
1 parent c6dd1c6 commit dd75bfa

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/testSentence.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import sys
2+
sys.path.append('../../')
3+
from pyPL.sentence import AtomicSentence
4+
import unittest
5+
import numpy as np
6+
7+
8+
class testSentence(unittest.TestCase):
9+
def test_table(self):
10+
print(AtomicSentence([True,False]).table())
11+
def test_condition(self):
12+
print(AtomicSentence().set(False).val())
13+
# def test_isupper(self):
14+
# self.assertTrue('FOO'.isupper())
15+
# self.assertFalse('Foo'.isupper())
16+
17+
# def test_split(self):
18+
# s = 'hello world'
19+
# self.assertEqual(s.split(), ['hello', 'world'])
20+
# # check that s.split fails when the separator is not a string
21+
# with self.assertRaises(TypeError):
22+
# s.split(2)
23+
24+
if __name__ == '__main__':
25+
unittest.main()

0 commit comments

Comments
 (0)