Skip to content

Commit

Permalink
tests/functions: Move test_Stability_squeezes_variable to test_stability
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Vesely <[email protected]>
  • Loading branch information
jvesely committed Nov 7, 2023
1 parent 77557ad commit 8685f59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 0 additions & 8 deletions tests/functions/test_objective.py

This file was deleted.

8 changes: 7 additions & 1 deletion tests/functions/test_stability.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import numpy as np

import psyneulink.core.llvm as pnlvm
Expand Down Expand Up @@ -43,3 +42,10 @@ def test_basic(variable, metric, normalize, expected, benchmark, func_mode):
res = benchmark(EX, variable)
np.testing.assert_allclose(res, expected)
assert np.isscalar(res) or len(res) == 1


def test_Stability_squeezes_variable():
s1 = Functions.Stability(default_variable=[[0.0, 0.0]])
s2 = Functions.Stability(default_variable=[0.0, 0.0])

assert s1.execute([5, 5]) == s2.execute([5, 5])

0 comments on commit 8685f59

Please sign in to comment.