<commit_before>import assert from 'assert'
import parser from '../../src/path/parser'

describe('parser()', function()
{
	it('should parse space separated path string', function()
	{
		assert.deepEqual([
			{ type: 'm', relative: false, x: 0, y: 1 },
			{ type: 'l', relative: false, x: 2, y: 3 },
		], parser('M 0 1 L 2 3'))
	})

	it('should parse comma separated path string', function()
	{
		assert.deepEqual([
			{ type: 'm', relative: false, x: 0, y: 1 },
			{ type: 'l', relative: false, x: 2, y: 3 },
		], parser('M 0,1 L 2,3'))
	})

	it('should parse comma-and-space separated path string', function()
	{<commit_msg>Added empty path string test<commit_after>import assert from 'assert'
import parser from '../../src/path/parser'

describe('parser()', function()
{
	it('should parse empty path string', function()
	{
		assert.deepEqual([], parser(' '))
	})
	
	it('should parse space separated path string', function()
	{
		assert.deepEqual([
			{ type: 'm', relative: false, x: 0, y: 1 },
			{ type: 'l', relative: false, x: 2, y: 3 },
		], parser('M 0 1 L 2 3'))
	})

	it('should parse comma separated path string', function()
	{
		assert.deepEqual([
			{ type: 'm', relative: false, x: 0, y: 1 },
			{ type: 'l', relative: false, x: 2, y: 3 },
		], parser('M 0,1 L 2,3'))
	})

	it('should parse comma-and-space separated path string', function()
	{
{'fraction_non_alphanumeric': 0.19233603537214444, 'fraction_numerical': 0.023581429624170966, 'mean_word_length': 3.682758620689655, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5961716', 'n_tokens_mistral': 528, 'n_tokens_neox': 464, 'n_words': 162}