Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
maxeeem committed Mar 13, 2024
1 parent cbc9b61 commit b47fbbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/test_NAL/test_NAL6.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
import timeit

from pynars.NARS.DataStructures import Task
from pynars.Narsese import Variable, VarPrefix
Expand All @@ -17,10 +18,9 @@ def setUp(self):
''''''

def test_variables(self):
import timeit
print('')
print(timeit.timeit(lambda: Term('a')))
print(timeit.timeit(lambda: Variable(VarPrefix.Independent, 'x')))
t1 = timeit.timeit(lambda: Term('a'))
t2 = timeit.timeit(lambda: Variable(VarPrefix.Independent, 'x'))
self.assertAlmostEqual(t1, t2)
pass

def test_unification_0(self):
Expand Down

0 comments on commit b47fbbb

Please sign in to comment.