diff --git a/src/mol-io/reader/_spec/common.spec.ts b/src/mol-io/reader/_spec/common.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..a0398de43ff77206224bac28602ffd365cb8500c --- /dev/null +++ b/src/mol-io/reader/_spec/common.spec.ts @@ -0,0 +1,17 @@ +/** + * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. + * + * @author Alexander Rose <alexander.rose@weirdbyte.de> + */ + +import { parseFloat as fastParseFloat, parseInt as fastParseInt } from '../../../mol-io/reader/common/text/number-parser'; + +describe('common', () => { + it('number-parser fastParseFloat', () => { + expect(fastParseFloat('11.0829(23)', 0, 11)).toBe(11.0829) + }); + + it('number-parser fastParseInt', () => { + expect(fastParseInt('11(23)', 0, 11)).toBe(11) + }); +}); \ No newline at end of file