<commit_before>import path from 'path';
import test from 'ava';
import isPromise from 'is-promise';
import outResolve from '../lib/out-resolve';

test('should return function', t => {
  t.true(typeof outResolve === 'function');
});

test('should return Promise', t => {
  t.true(isPromise(outResolve()));
});

test('only input should return file.ext', async t => {
  t.is(await outResolve('file.ext'), 'file.ext');
});

test('only input should return tmp/file.ext', async t => {
  t.is(await outResolve('tmp/file.ext'), 'tmp/file.ext');
});

test('input file and output file should return output.ext', async t => {
  t.is(await outResolve('file.ext', 'output.ext'), 'output.ext');
});

test('input file and output folder should return tmp/file.ext', async t => {
  t.is(await outResolve('file.ext', 'tmp'), path.normalize('tmp/file.ext'));
});

test('input files and output folder should return tmp/test/*.ext', async t => {
  t.is(await outResolve('tmp/test/*.ext', undefined), path.normalize('tmp/test/*.ext'));
});

test('input files and output file should return output.ext', async t => {
  t.is(await outResolve('test/*', 'output.ext'), 'output.ext');
});

test('input files and output file should return tmp/output.ext', async t => {
  t.is(await outResolve('test/*', 'tmp/output.ext'), 'tmp/output.ext');
});
<commit_msg>ci: normalize path for windows<commit_after>import path from 'path';
import test from 'ava';
import isPromise from 'is-promise';
import outResolve from '../lib/out-resolve';

test('should return function', t => {
  t.true(typeof outResolve === 'function');
});

test('should return Promise', t => {
  t.true(isPromise(outResolve()));
});

test('only input should return file.ext', async t => {
  t.is(await outResolve('file.ext'), 'file.ext');
});

test('only input should return tmp/file.ext', async t => {
  t.is(await outResolve('tmp/file.ext'), 'tmp/file.ext');
});

test('input file and output file should return output.ext', async t => {
  t.is(await outResolve('file.ext', 'output.ext'), 'output.ext');
});

test('input file and output folder should return tmp/file.ext', async t => {
  t.is(await outResolve('file.ext', 'tmp'), path.normalize('tmp/file.ext'));
});

test('input files and output folder should return tmp/test/*.ext', async t => {
  t.is(await outResolve(path.normalize('tmp/test/*.ext'), undefined), path.normalize('tmp/test/*.ext'));
});

test('input files and output file should return output.ext', async t => {
  t.is(await outResolve('test/*', 'output.ext'), 'output.ext');
});

test('input files and output file should return tmp/output.ext', async t => {
  t.is(await outResolve('test/*', 'tmp/output.ext'), 'tmp/output.ext');
});

{'fraction_non_alphanumeric': 0.20007437709185572, 'fraction_numerical': 0.0, 'mean_word_length': 4.822510822510822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '86058', 'n_tokens_mistral': 854, 'n_tokens_neox': 886, 'n_words': 240}