text: 'use strict';
  
  const optimize = require('.');
  
  const test = require('@putout/test')(__dirname, {
      'regexp/optimize': optimize,
  });
  
  test('plugin-regexp/optimize: report', (t) => {
      t.report('regexp', 'RegExp /(ab|ab)/ can be optimized to /(ab)/');
      t.end();
  });
  
  test('plugin-regexp/optimize: transform', (t) => {
      t.transform('regexp');
      t.end();
  });
  
  test('plugin-regexp/optimize: no transform: same-length', (t) => {
      t.noTransform('same-length');
      t.end();
  });
  
  test('plugin-regexp/optimize: no transform: crash', (t) => {
      t.transform('crash');
      t.end();
  });
  
  test('plugin-regexp/optimize: no transform: flags', (t) => {
      t.transform('flags');
      t.end();
  });
  
  test('plugin-regexp/optimize: ', (t) => {
      t.transform('flags');
      t.end();
  });
  
  test('plugin-regexp/optimize: escapes', (t) => {
      t.noTransform('escape');
      t.end();
  });
  
  test('plugin-regexp/optimize: false positive after fix', (t) => {
      t.noReportAfterTransform('after-fix');
      t.end();
  });
  
  