Skip to content
Snippets Groups Projects
Commit 153f039e authored by Alexander Rose's avatar Alexander Rose
Browse files

added number-parser spec

parent b7216d28
No related branches found
No related tags found
No related merge requests found
/**
* 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment