function check() {
            var checker;

            beforeEach(function() {
                checker = new Checker();
                checker.registerDefaultRules();
                checker.configure(options.rules);
            });

            it('report', function() {
                expect(checker.checkString(options.input)).to.have.error.count.equal(options.errors);
            });

            it('fix', function() {
                var result = checker.fixString(options.input);
                expect(result.errors).to.have.no.errors();
                expect(highlightws(result.output)).to.equal(highlightws(options.output));
            });
        }
Assert that the input fails with a certain number of errors and when fixed matches output with no errors.

@param {Object} options
@param {String} options.name the name of the test that will be put in the describe block
@param {Object} options.rules the object that will be passed to checker.configure
@param {String} options.input the input string to check
@param {String} options.output the output string that input should match after being fixed
@param {Number} [options.errors='1'] the expected number of errors when checking input