nx_chem_smiles_test.nx
buildroot/runtime/nx_chem_smiles_test.nx
about
nx_chem_smiles_test.nx -- C2.1 KAT for the basic SMILES parser.
Each test case calls nx_chem_parse_smiles with a literal SMILES,
verifies the resulting MolGraph has the expected atom + bond
structure, and (for negative tests) verifies the structured
error-code path.
All test SMILES are well-known reference molecules; expected
graphs hand-verified against OpenSMILES specification examples.
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_chem_molecule.nxnx_chem_smiles.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 21 | func tz(m: *MolGraph, i: nx_int) -> nx_int called by 5: a_single_atomsb_two_char_organicd_ethanoli_wildcardm_full_118_brackets calls 1: nx_chem_mol_atom |
| 27 | func tbo(m: *MolGraph, i: nx_int) -> nx_int |
| 33 | func mk1(c: nx_int) -> *MolGraph |
| 40 | func mk2(c1: nx_int, c2: nx_int) -> *MolGraph |
| 48 | func mk3(c1: nx_int, c2: nx_int, c3: nx_int) -> *MolGraph |
| 57 | func mkn(bytes: *u8, n: nx_int) -> *MolGraph calls 1: nx_chem_parse_smiles |
| 64 | func a_single_atoms() -> nx_int |
| 93 | func b_two_char_organic() -> nx_int |
| 113 | func c_bonds() -> nx_int |
| 138 | func d_ethanol() -> nx_int |
| 163 | func e_isobutane() -> nx_int |
| 186 | func f_benzene() -> nx_int |
| 221 | func g_cyclohexane() -> nx_int |
| 242 | func h_brackets() -> nx_int |
| 314 | func i_wildcard() -> nx_int |
| 325 | func j_disconnect() -> nx_int |
| 338 | func k_errors() -> nx_int |
| 386 | func l_diethyl_ether() -> nx_int |
| 403 | func m_full_118_brackets() -> nx_int |
| 459 | func n_percent_rings() -> nx_int |
| 485 | func o_atom_stereo() -> nx_int |
| 511 | func p_bond_stereo() -> nx_int |
| 546 | func q_atom_maps() -> nx_int |
| 568 | func main() -> nx_exit |