Skip to content

Commit

Permalink
small revision
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyYamy committed Mar 25, 2022
1 parent 3806739 commit 8875c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cpp/test_stl_sampling_time_units_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def __init__(self, *args, **kwargs):
super(TestSTLSamplingTimeUnits, self).__init__(*args, **kwargs)

def test_example(self):
spec = rtamt.STLDiscreteTimeSpecification(0)
spec = rtamt.StlDiscreteTimeOnlineSpecificationCpp()
spec.name = 'STL Example specification'

self.assertEqual(spec.name, 'STL Example specification', 'Spec name assertion')
Expand All @@ -21,7 +21,7 @@ def test_example(self):
self.assertEqual(spec.sampling_tolerance, 0.1, 'Spec sampling tolerance assertion')

try:
spec.parse();
spec.parse()
computed = spec.update(0, [['req', 2.2], ['gnt', 1]])
self.assertEqual(2.2, computed, 'First computation')

Expand Down

0 comments on commit 8875c89

Please sign in to comment.