Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_synnode(self):
synnode1 = SynNode(self.str1)
self.assertEqual(synnode1.synid, '近い/ちかい')
self.assertIn(1, synnode1.tagids)
self.assertEqual(synnode1.score, 1)
self.assertEqual(synnode1.feature, '')
synnode2 = SynNode(self.str2)
self.assertEqual(synnode2.synid, 's199:親しい/したしい')
self.assertEqual(synnode2.score, 0.99)
self.assertEqual(synnode2.feature, '')
synnode3 = SynNode(self.str3)
self.assertEqual(synnode3.synid, 's1201:所在/しょざい')
self.assertEqual(synnode3.score, 0.693)
self.assertEqual(synnode3.feature, '<上位語><下位語数:323>')
def test_synnode(self):
synnode1 = SynNode(self.str1)
self.assertEqual(synnode1.synid, '近い/ちかい')
self.assertIn(1, synnode1.tagids)
self.assertEqual(synnode1.score, 1)
self.assertEqual(synnode1.feature, '')
synnode2 = SynNode(self.str2)
self.assertEqual(synnode2.synid, 's199:親しい/したしい')
self.assertEqual(synnode2.score, 0.99)
self.assertEqual(synnode2.feature, '')
synnode3 = SynNode(self.str3)
self.assertEqual(synnode3.synid, 's1201:所在/しょざい')
self.assertEqual(synnode3.score, 0.693)
self.assertEqual(synnode3.feature, '<上位語><下位語数:323>')
def test_synnode(self):
synnode1 = SynNode(self.str1)
self.assertEqual(synnode1.synid, '近い/ちかい')
self.assertIn(1, synnode1.tagids)
self.assertEqual(synnode1.score, 1)
self.assertEqual(synnode1.feature, '')
synnode2 = SynNode(self.str2)
self.assertEqual(synnode2.synid, 's199:親しい/したしい')
self.assertEqual(synnode2.score, 0.99)
self.assertEqual(synnode2.feature, '')
synnode3 = SynNode(self.str3)
self.assertEqual(synnode3.synid, 's1201:所在/しょざい')
self.assertEqual(synnode3.score, 0.693)
self.assertEqual(synnode3.feature, '<上位語><下位語数:323>')