<commit_before>/**
 * @license
 * Copyright UIUX Engineering All Rights Reserved.
 */

import { isNumber } from './is-number';

describe('isNumber', () => {
  it('should return true when passing correct numeric string', () => {
    expect(isNumber('2')).toBe(true);
  });

  it('should return true when passing correct double string', () => {
    expect(isNumber('1.123')).toBe(true);
  });

  it('should return true when passing correct negative string', () => {
    expect(isNumber('-2')).toBe(true);
  });

  it('should return true when passing correct scientific notation string', () => {
    expect(isNumber('1e5')).toBe(true);
  });

  it('should return false when passing incorrect numeric', () => {
    expect(isNumber('a')).toBe(false);
  });

  it('should return false when passing parseable but non numeric', () => {
    expect(isNumber('2a')).toBe(false);
  });

  it('should return false when passing parseable but non ocatal', () => {
    expect(isNumber('0x12345')).toBe(true);
  });
});<commit_msg>feat(cdk): update spec<commit_after>/**
 * @license
 * Copyright UIUX Engineering All Rights Reserved.
 */

import { isNumber } from './is-number';

describe('isNumber', () => {
  it('should return true when passing correct numeric string', () => {
    expect(isNumber('2')).toBe(true);
  });

  it('should return true when passing correct double string', () => {
    expect(isNumber('1.123')).toBe(true);
  });

  it('should return true when passing correct negative string', () => {
    expect(isNumber('-2')).toBe(true);
  });

  it('should return true when passing correct scientific notation string', () => {
    expect(isNumber('1e5')).toBe(true);
  });

  it('should return false when passing incorrect numeric', () => {
    expect(isNumber('a')).toBe(false);
  });

  it('should return false when passing parseable but non numeric', () => {
    expect(isNumber('2a')).toBe(false);
  });

  it('should return true when passing octal', () => {
    expect(isNumber('0x12345')).toBe(true);
  });
});
{'fraction_non_alphanumeric': 0.18790282597917699, 'fraction_numerical': 0.014873574615765989, 'mean_word_length': 4.1479591836734695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3393205', 'n_tokens_mistral': 609, 'n_tokens_neox': 590, 'n_words': 155}