Skip to content

Commit

Permalink
JavaDoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Jul 20, 2024
1 parent badb618 commit 7f8596a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/src/main/java/uk/ac/ebi/beam/Bond.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
* valid undirected and directed bond types and {@link #DOT}. Opposed to the
* other types, {@link #DOT} indicates that two atoms are not connected. <br>
*
* <table summary="" style="font-family: Courier, monospace;"> <tr><th>{@link
* <table style="font-family: Courier, monospace;"> <caption>
* Bond Types
* </caption><tr><th>{@link
* Bond}</th><th>{@link #token()}</th><th>{@link #order()}</th><th>{@link
* #inverse()}</th></tr> <tr><td>{@link #DOT}</td><td>.</td><td>0</td><td></td></tr>
* <tr><td>{@link #IMPLICIT}</td><td></td><td>undefined (2 or
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/uk/ac/ebi/beam/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/**
* Enumeration of valid OpenSMILES elements.
*
* <h1>Organic subsets</h1> Several of the elements belong to the organic
* <h2>Organic subsets</h2> Several of the elements belong to the organic
* subset. Atoms of an organic element type can be written just as their symbol
* (see. <a href="http://www.opensmiles.org/opensmiles.html#orgsbst">Organic
* Subset, OpenSMILES Specification</a>).
Expand All @@ -52,7 +52,7 @@
* #Sulfur}</li> <li>{@link #Chlorine}</li> <li>{@link #Bromine}</li> <li>{@link
* #Iodine}</li> </ul>
*
* <h1>Usage</h1>
* <h2>Usage</h2>
*
* Elements can be created by either using the value directly or by looking up
* it's symbol. If the element may be aromatic the lower-case symbol can also be
Expand Down
16 changes: 16 additions & 0 deletions core/src/test/java/uk/ac/ebi/beam/GraphTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,22 @@ public void invalidPermutation() {
Assert.assertThat(g.topologyOf(3).configuration(), is(Configuration.AL2));
}

@Test public void testDegenerateOctahedral() throws InvalidSmilesException {
Graph g = Graph.fromSmiles("O=[V@OH25](Cl)(Cl)(F)F");
System.err.println(g.configurationOf(1));
for (int nbor : g.neighbors(1)) {
System.err.println(nbor);
}
}

@Test public void testDegenerateOctahedral2() throws InvalidSmilesException {
Graph g = Graph.fromSmiles("O=[V@OH25]12(F)F.Cl1.Cl2");
System.err.println(g.configurationOf(1));
for (int nbor : g.neighbors(1)) {
System.err.println(nbor);
}
}

@Test public void nofail() throws IOException {
Graph g = Graph.fromSmiles("CCCO[P@H]1(OC[C@@H]2[C@@H](O1)[C@@]([C@@H](O2)n3cnc4c3nc(nc4OCC)N)(C)F)O CHEMBL1630021");
assertThat(g.toSmiles(),
Expand Down

0 comments on commit 7f8596a

Please sign in to comment.