Closed soulne4ny closed 12 years ago
The same with S
Ba
F2
in #10. Only BaS
is removed however BaF2
is also possible.
Only one compound is removed from N2
O3
N2
as well as O3
N2
O3
. And H2
O
H2
.
Tried to reproduce. Added H
Cl
H
test to FormulaRegistryTest
.
@Test
public void testHClH() {
assertTrue(reactionProduces("HCl", "H", "Cl"));
assertTrue(formulaIsRemoved("H", "Cl"));
assertTrue(formulaIsRemoved("Cl", "H"));
assertTrue(formulaIsRemoved("H", "Cl", "H"));
assertTrue(formulaIsRemoved("Cl", "H", "Cl"));
}
It is passing. Similar tests with other elements are passing also.
Luch, please close the bug after "game-log" is in "master".
It still behaves weirdly. This is what log shows when I try to remove Co
, O
, 2
- O
- O2
- O
- CoO
Though it should be something like
- O // In case just pure O could be removed!
- O2
- CoO
Hmm... Can it be so that O is removed vertically and horizontally? We shouldn't allow removing single O. It's kinda stupid and looks like a bug on wikipedia.
At least in compact-formulas #10.