summaryrefslogtreecommitdiff
path: root/test/scanners/coderay_suite.rb
Commit message (Collapse)AuthorAgeFilesLines
* Moving scanner tests into separate repository. The repository can be reached ↵murphy2010-04-141-510/+0
| | | | at http://svn.rubychan.de/coderay-scanner-tests/trunk.
* Fixed a problem with highlighted diff lines in the output of the scanner suite.murphy2010-04-141-6/+8
|
* Converted binary to UNIX format, and some cleanup in the version history.murphy2010-04-111-2/+1
|
* Python scanner highlights docstrings as comments (see #190).murphy2010-04-021-1/+1
|
* Upporting changes from 0.9.2 (vs. 0.9.1).murphy2010-03-311-0/+9
|
* Updated test suite to use new Diff scanner and :alpha style.murphy2010-03-301-21/+57
|
* A little fix in the color output of the test suite.murphy2010-01-201-1/+1
|
* Improved scanner tests: known issues, JRuby bug workaround (see #136).murphy2010-01-011-3/+37
|
* Updated scanner test suite:murphy2009-10-191-11/+7
| | | | | fixing Ruby 1.9 warnings, tab width, exception for missing scanners
* SQL scanner cleanup (issue #33).murphy2009-04-221-4/+4
| | | | | * Increased size of the test suite random samples.
* Fixed some test suite problems.murphy2009-04-201-1/+8
| | | | | | | * coderay_suite: UTF-8 output is compared as binary. * functional tests: cleaned up. * test/unit: prevent Ruby 1.9 warning about circular require.
* Using the new :title option in coderay_suite.rb.murphy2009-04-141-1/+2
|
* New feature: HTML encode option :highlight_lines. See documentation.murphy2009-01-221-5/+11
| | | | | | * The scanner test suite uses it and highlights the lines that differ after a failed complete test in *.actual.html.
* Fixed a bug in Ruby scanner that broke tests with JRuby.murphy2009-01-111-3/+7
|
* Made plugin ids case-insensitive.murphy2009-01-011-1/+1
| | | | | With this change, upper case lang names are allowed like 'C'.
* Completed YAML Scanner (closes #34).murphy2009-01-011-2/+4
| | | | | | | | | | | | | YAML Scanner: * Added another example (multiline). * Added multiline string recognition. * This should be enough for most people. Else: * New method: Scanner#column (very useful and fast!) * Added new token type :doctype, used also by HTML scanner. * coderay_suite: minor output tweaks.
* JRuby fixes.murphy2008-12-251-1/+1
|
* Fixes for Ruby 1.9.murphy2008-12-251-4/+5
|
* New: *YAML* (#53). Preparing for version 0.8.1.murphy2008-10-201-0/+4
| | | | | | | | | | | | | | * Based on the YAML scanner from Jamis Buck's Syntax lib. * Some YAML examples from Ruby gems. * Doesn't handle string yet; alpha state. More changes: * coderay_suite: new parameter "fast" makes testing faster (for development). * Changed the title of HTML page output (Page Encoder). * FileType: Added new file types. * cYcnus style: simplified some token group styles. * Cleanup in CSS and HTML Scanners.
* New: *Simple Diff Scanner* (closes #22).murphy2008-09-301-1/+1
| | | | | | | | | | | | | | * Highlights unified diffs, especially like the ones svn diff outputs. * Changes to make highlighting of whole lines were necessary. * I added two example files. More changes: * Added token classes :head, :delete, :insert, and :change along with styles. * Added two new special token types: :begin_line and :end_line. They mark token groups that explicitly span whole lines and should be highlighted as such. * The HTML encoder converts these new tokens to DIVs. May need more work. * The Debug Encoder uses square brackets for line tokens. * Some cleanups.
* Optimized CSS styles, improved coderay_suite, new HTML test.murphy2008-09-241-16/+19
| | | | | | | * CSS styles are shortened more to optimize HTML output. * Added a longer example file for the HTML Scanner. * coderay_suite prints more accurate and sensible benchmarks.
* New: *Java Scanner* (closes #42).murphy2008-09-211-0/+1
| | | | | | | | | | | | | | | | | | | * Based on JavaScript, does a good job, but may need more polish. * Java::BuiltinTypes::List is a helper constant that contains 2389 Java types. ** The list was generated from TextMate's Java bundle with the help of SimpleRegexpScanner. * I added the JRuby core classes as example code for testing (1.8 MB) JavaScript Scanner: * Fixed recognition of floats and algebraic signs. ** Still needs work - we need to distinguish i-1 from i+-1. More changes: * New: "SimpleRegexpScanner":http://murfy.de/simple-regexp-scanner * Added new token class :annotation along with CSS styles. ** Should be useful for Python, too. * coderay_suite warns if no scanner was found for this language. * PluginHost#default can be called without parameter (will return default id)
* Added more file extensions to Scannersmurphy2008-09-161-4/+18
| | | | | | | * Added file_extensions to Delphi, XML, Debug, Scheme, and NitroXHTML scanners. * Removed obsolete extension declarations from Scanner test suites. * Minor cleanups.
* Changed coderay_suite's defaults: 'noassert' option is now 'assert'.murphy2008-08-111-8/+8
|
* Increased default test sample size. Test will check more and take more time.murphy2008-08-061-1/+1
|
* Changed test suite to test even big files. I hope you have a fast machine.murphy2008-08-041-4/+4
|
* Test suite improved:murphy2008-01-211-63/+68
| | | | | | | | - make a copy of HTML output (named test.expected.html) when complete test was successful - skip random test if ENV['only'] was set - minor output improvements - refactorized the progress output
* - fixed a bug in coderay_suite (break outside of loop?)murphy2008-01-121-13/+3
| | | | | | | | - made test and bench tasks run with all implementations - included term/ansicolor in lib (will need in some day anyway) as svn:external (this also means that tests will be colorful on all rubys) - incremented CodeRay version number (we're near...)
* Lib:murphy2008-01-071-55/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Encoder: removed a warning - Encoders::HTML: don't shadow outer variable - Plugin: move require_plugin into class namespace - Ruby Scanner: - "alias" keyword recognition - better regexp/division distinction - recognize ~, !, !=, and !~ as method names (partly Ruby 1.9 only) - reordered states for speed Tests: - updated coderay-suite to use gem instead of require_gem - general improvements (more colors!, new parameter: new, new syntax lang.test for only and new) - fixed ruby suite - adjusted a lot of Ruby tests (alias uses methods now) - new tests: ruby/operators, ruby/regexp Samples: - fixed/updated ('bout time) Rake tasks: - updated to use new rubygems API
* New Scanner: Scheme (thanks closure!)murphy2007-01-011-11/+12
| | | | | | | | | | | | | | | Test and example added. Token changed: operator_fat instead of operator_name (for use with LISP-like parentheses). Added file_extension for Scanners. Improved CodeRay::Suite: - uses scanners file extension now - example parameter is now named "only" - only param overwrite MAX_CODE_SIZE_TO_HIGHLIGHT
* Done:murphy2007-01-011-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | General: - Declared version 0.7.6. - Moved WordList, CaseIgnoringWordList, Plugin, PluginHost and FileType into CodeRay namespace. CodeRay should be "clean" now, except for the String#to_unix helper function. - Fixed a bit of documentation. - CodeRay binary: Prepare for streaming switch. Scanners: - Added code= alias for string=. - Added streaming? method: Is this Scanner in streaming mode? - Enhanced error info a bit. - Ruby scanner: - Highlights Regexp heredocs now. They may be added to Ruby 1.9. - Speedups with better support for Ruby 1.9. - Change in whitespace handling (faster and cleaner now.) - Speed up some operator recognition (saving two string comparisons). - Declared C and Plaintext Scanners as Streamable. Tokens: - Changed Text/Block token recognition (#is_a? ::String for Ruby 1.9 support). - New method: Tokens#text yields the code string. - text_size fixed. - Token kind shortcuts (like r for reserved) are now defined in token_classes.rb (instead of encoders/html/classes.rb). Encoders: - Debug Scanner added. - Base encoder class adds to @out when encoding (if @out is set). - A little Tokens scanner speedup. - Text encoder uses text_token. - Statistic encoder counts block tokens. - Smaller changes in XML and HTML encoders. Styles: - cYcnus style defines a debug class now. Duo: - scanner and encoder are now methods. Scanner and Encoder are created (and cached) when needed, not earlier. - Documented. Tests: - Disabled encoder and scanner list check (breaks too often). - Added identity test, which checks if tokens#text matches the input. - Added nocolor switch. Developer tools: - Benchmark uses Encoder#file_extension for output now. - Rakefile: Support for 19, 18, yarv and ruby switches for easy comparing different Ruby versions. - Statistic: Demos are no longer tests.
* Adjusted tests for rhtml and nitro.murphy2006-10-201-7/+7
| | | | | Changed default sizes for tests => much faster default tests.
* Improved output.murphy2006-10-201-19/+25
|
* Scanner tests:murphy2006-10-191-3/+3
| | | | - changed color of times from blue to white (blue is not well visible on black.)
* Improved fallback for scanner tests if Term::ANSIColor is not available.murphy2006-10-191-2/+6
|
* Ruby scanner: #{...} delimiters are now :inline_delimiter to solve CSS problem.murphy2006-10-181-119/+212
| | | | | | New token: :inline_delimiter Scanner tests suite revamped: colorization, split up into methods.
* Fixed warning in bench.rb.murphy2006-10-181-3/+3
| | | | | | | | | | Ruby Scanner: improved handling of ambiguos values. - operator methods are now :ident instead of :operator - fancy_allowed and regexp_allowed are now value_expected - value_expected works in operator method calls - tests enhanced and adjusted Scanner tests: new diffed option, diff doesn't imply noassert anymore
* Ignore *.debug.diff generated by scanner tests.murphy2006-10-181-1/+1
|
* Fixed functional test.murphy2006-10-181-1/+3
| | | | | | | Fixed Ruby scanner (/= was scanned as regexp!) Made bench.rb run from any folder. Made scanner test diff function work via EDITOR instead of gvimdiff.
* Renamed tests: .actual.* is (ignored) output, .expected.* is input now.murphy2006-10-171-9/+13
| | | | | Added test:clean task.
* Made CodeRay ready Ruby 1.9:murphy2006-10-171-1/+1
| | | | | | - tests failed because :symbol.is_a? String. - ...and Array#shuffle! is already built into Ruby 1.9
* Moved scanner tests into test/scanners.murphy2006-10-151-0/+218