Skip to content

Commit

Permalink
Add test that fails due to known bug
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Jun 21, 2024
1 parent d70643b commit 025ba8a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/program/linspace_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def setUp(self):
LoopJmp(0)
]

self.output = [
(TimeType(10**6 * idx), [sum([-1.0] + [0.01] * idx)]) for idx in range(200)
]

def test_program(self):
program_builder = LinSpaceBuilder(('a',))
program = self.pulse_template.create_program(program_builder=program_builder)
Expand All @@ -41,6 +45,12 @@ def test_commands(self):
commands = to_increment_commands([self.program])
self.assertEqual(self.commands, commands)

def test_output(self):
vm = LinSpaceVM(1)
vm.set_commands(commands=self.commands)
vm.run()
self.assertEqual(self.output, vm.history)


class PlainCSDTest(TestCase):
def setUp(self):
Expand Down

0 comments on commit 025ba8a

Please sign in to comment.