-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Molecule } from 'openchemlib'; | ||
import { test, expect } from 'vitest'; | ||
|
||
import { makeRacemic } from '../../util/makeRacemic'; | ||
import { TopicMolecule } from '../TopicMolecule'; | ||
|
||
test('TopicMolecule', () => { | ||
const moleculeR = Molecule.fromSmiles('C[C@H](Cl)Br'); | ||
const moleculeS = Molecule.fromSmiles('C[C@@H](Cl)Br'); | ||
console.log(moleculeR.getIDCode()); | ||
console.log(moleculeS.getIDCode()); | ||
|
||
makeRacemic(moleculeR); | ||
console.log(moleculeR.getIDCode()); | ||
makeRacemic(moleculeS); | ||
console.log(moleculeS.getIDCode()); | ||
|
||
const topicMolecule = new TopicMolecule(molecule); | ||
Check failure on line 18 in src/topic/__tests__/TopicMolecule.racemic.test.js
|
||
}); |