Parser { static Graph losse(String str) throws InvalidSmilesException { return new Parser(CharBuffer.fromString(str), false).molecule(); } Parser(CharBuffer buffer, boolean strict);   Parser(String str); List<Edge> getEdges(LocalArrangement localArrangement, int u); int[] getAlleneCarriers(int focus); Collection<? extends String> getWarnings();  }
@Test public void hydrogen() throws IOException { Graph g = Parser.losse("HH"); assertThat(g.order(), is(2)); assertThat(g.toSmiles(), is("[H][H]")); }
@Test public void deuterium() throws IOException { Graph g = Parser.losse("DD"); assertThat(g.order(), is(2)); assertThat(g.toSmiles(), is("[2H][2H]")); }
@Test public void tritium() throws IOException { Graph g = Parser.losse("TT"); assertThat(g.order(), is(2)); assertThat(g.toSmiles(), is("[3H][3H]")); }
@Test public void tellurium() throws IOException { Graph g = Parser.losse("[te]"); assertTrue(g.atom(0).aromatic()); assertThat(g.atom(0).element(), is(Element.Tellurium)); }