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]") {
9  hoc_pushx(4.0);
10  hoc_pushx(5.0);
11  hoc_add();
12  REQUIRE( hoc_xpop() == 9.0 );
13 }
void hoc_init_space(void)
Definition: code.cpp:352
double hoc_xpop(void)
void hoc_pushx(double)
TEST_CASE("Test hoc interpreter", "[Neuron][hoc_interpreter]")