|
|
@ -38,39 +38,42 @@ TEST(ReadLabFileTest, ParseTest) { |
|
|
|
ASSERT_TRUE(labeling->containsAtomicProposition(smth)); |
|
|
|
|
|
|
|
//Testing whether all and only the correct nodes are labeled with "phi"
|
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,0)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,1)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,2)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,3)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,5)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,7)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,9)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,10)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(phi,11)); |
|
|
|
|
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,3)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,4)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,5)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,6)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,7)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,8)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,9)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,10)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(phi,11)); |
|
|
|
|
|
|
|
//Testing whether all and only the correct nodes are labeled with "psi"
|
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(psi,6)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(psi,7)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(psi,8)); |
|
|
|
|
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,0)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,1)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,2)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,3)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,4)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,5)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,6)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,7)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,8)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,9)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,10)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(psi,11)); |
|
|
|
|
|
|
|
//Testing whether all and only the correct nodes are labeled with "smth"
|
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(smth,4)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(smth,5)); |
|
|
|
ASSERT_TRUE(labeling->stateHasAtomicProposition(smth,2)); |
|
|
|
|
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,0)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,1)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,2)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,3)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,4)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,5)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,6)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,7)); |
|
|
|
ASSERT_FALSE(labeling->stateHasAtomicProposition(smth,8)); |
|
|
|