Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Oct 3, 2024
1 parent 7f42042 commit 24cfc7e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/test/unit/io/stan_csv_reader_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,22 +570,24 @@ TEST_F(StanIoStanCsvReader, fixed_param) {
ASSERT_EQ(10, fixed_param.samples.rows());
}


TEST_F(StanIoStanCsvReader, no_samples) {
std::ifstream no_samples_stream;
no_samples_stream.open("src/test/unit/io/test_csv_files/bernoulli_no_samples.csv");
no_samples_stream.open(
"src/test/unit/io/test_csv_files/bernoulli_no_samples.csv");
std::stringstream out;
stan::io::stan_csv no_samples = stan::io::stan_csv_reader::parse(no_samples_stream, &out);
stan::io::stan_csv no_samples
= stan::io::stan_csv_reader::parse(no_samples_stream, &out);
no_samples_stream.close();
ASSERT_EQ(out.str(), "Unable to parse sample\n");
}


TEST_F(StanIoStanCsvReader, variational) {
std::ifstream variational_stream;
variational_stream.open("src/test/unit/io/test_csv_files/bernoulli_variational.csv");
variational_stream.open(
"src/test/unit/io/test_csv_files/bernoulli_variational.csv");
std::stringstream out;
stan::io::stan_csv variational = stan::io::stan_csv_reader::parse(variational_stream, &out);
stan::io::stan_csv variational
= stan::io::stan_csv_reader::parse(variational_stream, &out);
variational_stream.close();
ASSERT_EQ(1000, variational.metadata.num_samples);
}

0 comments on commit 24cfc7e

Please sign in to comment.