From a23a48c3326f8e117db60991120a270a83628992 Mon Sep 17 00:00:00 2001
From: Petter <petter.kallstrom@liu.se>
Date: Tue, 31 Jan 2023 17:43:25 +0100
Subject: [PATCH] Add test for constant value

---
 test/test_core_operations.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/test_core_operations.py b/test/test_core_operations.py
index fb957213..783bcd6d 100644
--- a/test/test_core_operations.py
+++ b/test/test_core_operations.py
@@ -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."""
-- 
GitLab