Commit e537c025 authored by Chuanren Wu's avatar Chuanren Wu

add one more test

parent 7f3a4cb2
......@@ -427,6 +427,46 @@ TEST(BC, LoopFailed1)
EXPECT_EQ(0, v.size());
}
TEST(BC, Combinations1)
{
std::vector<Constraint> cs;
{
Constraint c;
c.plus(0);
c.plus(1);
c.plus(2);
c.plus(3);
c.minus(4);
cs.push_back(c);
}
{
Constraint c;
c.plus(5);
c.minus(6);
c.minus(7);
cs.push_back(c);
}
{
Constraint c;
c.plus(8);
c.minus(0);
cs.push_back(c);
}
{
Constraint c;
c.plus(7);
c.minus(9);
c.minus(8);
cs.push_back(c);
}
std::vector<double> vl(10);
std::generate(vl.begin(), vl.end(), [](){ return 100.0;} );
auto v = discretizeImpl(vl, cs);
ASSERT_NE(0, v.size());
}
TEST(BC, ComplexSystem)
{
std::vector<Constraint> cs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment