Skip to content
Snippets Groups Projects
Commit a23a48c3 authored by Petter Källström's avatar Petter Källström Committed by Oscar Gustafsson
Browse files

Add test for constant value

parent 131dac8d
Branches
Tags
1 merge request!132Add test for constant value
Pipeline #88518 passed
......@@ -33,6 +33,12 @@ class TestConstant:
test_operation = Constant(3 + 4j)
assert test_operation.evaluate_output(0, []) == 3 + 4j
def test_constant_change_value(self):
test_operation = Constant(3)
assert test_operation.value == 3
test_operation.value = 4
assert test_operation.value == 4
class TestAddition:
"""Tests for Addition class."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment