NEURON
hoc_interpreter.cpp
Go to the documentation of this file.
1
#include <catch2/catch.hpp>
2
3
#include <
hocdec.h
>
4
#include <
ocfunc.h
>
5
#include <
code.h
>
6
7
TEST_CASE
(
"Test hoc interpreter"
,
"[Neuron][hoc_interpreter]"
) {
8
hoc_init_space
();
9
hoc_pushx
(4.0);
10
hoc_pushx
(5.0);
11
hoc_add();
12
REQUIRE(
hoc_xpop
() == 9.0);
13
}
hoc_init_space
void hoc_init_space(void)
Definition:
code.cpp:359
code.h
hoc_xpop
double hoc_xpop(void)
TEST_CASE
TEST_CASE("Test hoc interpreter", "[Neuron][hoc_interpreter]")
Definition:
hoc_interpreter.cpp:7
hocdec.h
hoc_pushx
void hoc_pushx(double)
ocfunc.h
test
unit_tests
oc
hoc_interpreter.cpp