Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ private IAtomType perceiveCarbons(IAtomContainer atomContainer, IAtom atom,
} else if (isCharged(atom)) {
if (isCharge(atom, 1)) {
if (connectedBonds.isEmpty()) {
IAtomType type = getAtomType("C.plus.sp2");
IAtomType type = getAtomType("C.plus.planar");
if (isAcceptable(atom, atomContainer, type, connectedBonds)) return type;
} else {
IBond.Order maxBondOrder = getMaximumBondOrder(connectedBonds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ void testCarbokation_implicitHydrogen() throws Exception {
atom2.setFormalCharge(+1);
mol.addAtom(atom2);

String[] expectedTypes = {"C.plus.sp2"}; // FIXME: compare with previous test... same compound!
String[] expectedTypes = {"C.plus.planar"};
assertAtomTypes(testedAtomTypes, expectedTypes, mol);
}

Expand Down