Skip to content

Commit 9bbc9fc

Browse files
committed
Fix test_controls.py to access var_a.value for correct assertions
1 parent 2759dd5 commit 9bbc9fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

brainpy/_src/math/object_transform/tests/test_controls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def f1():
169169
lambda: 4, lambda: 5])
170170

171171
self.assertTrue(f(11) == 1)
172-
print(var_a)
173-
self.assertTrue(bm.all(var_a == 1))
172+
print(var_a.value)
173+
self.assertTrue(bm.all(var_a.value == 1))
174174
self.assertTrue(f(1) == 4)
175175
self.assertTrue(f(-1) == 5)
176176

0 commit comments

Comments
 (0)