Skip to content

Commit

Permalink
test(fmt/smi): update tests after behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Apr 11, 2024
1 parent 349168c commit ba7ebe1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion test/fmt/smiles_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ TEST_F(SmilesTest, AromaticityTest) {
"O=C1C=CC(=O)C2=C1OC=CO2 aromatic test\n"
// Extra
"c1[cH-]ccc1 cyclopenadienyl anion\n"
"c1ccccc1c2ccccc2 biphenyl error\n");
"c1ccccc1:c2ccccc2 biphenyl error\n");

std::string smi;

Expand Down Expand Up @@ -687,6 +687,20 @@ TEST_F(SmilesTest, EnamineRealExamplesTest) {
EXPECT_EQ(mol().num_sssr(), 3);
}

TEST_F(SmilesTest, DUDEExamplesTest) {
set_test_string( // Taken from DUD-E set
"Cc1ccc(cc1)n2c(=O)c3c4c(sc3nc2SCC=C)CCC[C@@H]4C C02302104\n");

std::string smi;

NURI_FMT_TEST_NEXT_MOL("C02302104", 26, 29);
write_smiles(smi, mol());

set_test_string(smi);

NURI_FMT_TEST_NEXT_MOL("C02302104", 26, 29);
}

TEST_F(SmilesTest, ManyRings) {
set_test_string(
"C12C(C34C(C56C(C78CC79C8%10C9%11C%10%12C%11%13C%12%14C%13%15C%14%16C%15%"
Expand Down

0 comments on commit ba7ebe1

Please sign in to comment.