We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6dd1c6 commit dd75bfaCopy full SHA for dd75bfa
tests/testSentence.py
@@ -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