Closed ariddell closed 8 years ago
Here's the ones I could find:
~/packages/stan-dev/protostan/lib/stan/src/test/unit$ grep 'compile(' ./* -R ./lang/compiler_test.cpp: stan::lang::compile(&msgs, stan_lang_in, cpp_out, model_name, in_file_name); ./lang/compiler_test.cpp: EXPECT_NO_THROW(stan::lang::compile(0, stan_lang_in, cpp_out, model_name, in_file_name)); ./lang/compiler_test.cpp: EXPECT_NO_THROW(stan::lang::compile(&out, stan_lang_in, cpp_out, model_name, in_file_name));
Doesn't seem to cover it?
That's a start. I can translate PyStan's tests into gtest as well.
On 12/30, Krzysztof Sakrejda wrote:
Here's the ones I could find:
~/packages/stan-dev/protostan/lib/stan/src/test/unit$ grep 'compile(' ./* -R ./lang/compiler_test.cpp: stan::lang::compile(&msgs, stan_lang_in, cpp_out, model_name, in_file_name); ./lang/compiler_test.cpp: EXPECT_NO_THROW(stan::lang::compile(0, stan_lang_in, cpp_out, model_name, in_file_name)); ./lang/compiler_test.cpp: EXPECT_NO_THROW(stan::lang::compile(&out, stan_lang_in, cpp_out, model_name, in_file_name));
Doesn't seem to cover it?
Reply to this email directly or view it on GitHub: https://github.com/sakrejda/protostan/issues/9#issuecomment-168115700
The tests should test every possible outcome for stanc
From an email from Bob
Tests for these conditions must be somewhere in cmdstan or stan, right?