"use strict";

var _winPath = require("./winPath");
test('normal', () => {
  expect((0, _winPath.winPath)('\\a\\b')).toEqual('/a/b');
  expect((0, _winPath.winPath)('/a/b')).toEqual('/a/b');
  expect((0, _winPath.winPath)('\\a\\b')).toEqual('/a/b');
});
test('Chinese', () => {
  expect((0, _winPath.winPath)('\\你好\\欢迎')).toEqual('/你好/欢迎');
  expect((0, _winPath.winPath)('\\你好欢迎')).toEqual('/你好欢迎');
  expect((0, _winPath.winPath)('你好\\欢迎')).toEqual('你好/欢迎');
});
test('Special characters', () => {
  expect((0, _winPath.winPath)('\\$\\%')).toEqual('/$/%');
  expect((0, _winPath.winPath)('\\next\\test\\read')).toEqual('/next/test/read');
});
test('not convert extended-length paths', () => {
  const path = '\\\\?\\c:\\aaaa\\bbbb';
  expect((0, _winPath.winPath)(path)).toEqual(path);
});