Skip to content

Commit

Permalink
test nothing.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Oct 22, 2024
1 parent f6f2b47 commit ba854a5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/usecases/suffix/suffix_nothing.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
NEURON {
SUFFIX nothing
}

FUNCTION forty_two_plus_x(x) {
forty_two_plus_x = 42.0 + x
}

FUNCTION twice_forty_two_plus_x(x) {
twice_forty_two_plus_x = 2.0 * forty_two_plus_x(x)
}
7 changes: 7 additions & 0 deletions test/usecases/suffix/suffix_nothing_again.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NEURON {
SUFFIX nothing
}

FUNCTION forty_three() {
forty_three = 43.0
}
12 changes: 12 additions & 0 deletions test/usecases/suffix/test_suffix_nothing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from neuron import h, gui


def test_nothing():
x = 15.0
assert h.forty_two_plus_x(x) == 42.0 + x
assert h.twice_forty_two_plus_x(x) == 2.0 * (42.0 + x)
assert h.forty_three() == 43.0


if __name__ == "__main__":
test_nothing()

0 comments on commit ba854a5

Please sign in to comment.