summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed pleac Scheme test and debug test folder.murphy2007-01-011-2/+2
|
* Added Scheme tests.murphy2007-01-012-0/+5179
|
* New Scanner: Scheme (thanks closure!)murphy2007-01-015-13/+5194
| | | | | | | | | | | | | | | 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
* Added tests for debug scanner and another ruby test case.murphy2007-01-019-0/+575
| | | | | Added drafts for a comparison of CodeRa an Pygments features.
* Done:murphy2007-01-013-8/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-203-64/+64
| | | | | Changed default sizes for tests => much faster default tests.
* Improved output.murphy2006-10-201-19/+25
|
* Improved Delphi scanner.murphy2006-10-202-2969/+2969
|
* Added WordList tests. Renamed Basic to BasicTest.murphy2006-10-203-5/+70
|
* 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-1812-420/+513
| | | | | | New token: :inline_delimiter Scanner tests suite revamped: colorization, split up into methods.
* strange.in.rb test output fixed.murphy2006-10-181-5/+5
|
* Fixed besetzung.in.rb test.murphy2006-10-181-0/+0
|
* Fixed warning in bench.rb.murphy2006-10-186-43/+57
| | | | | | | | | | 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-183-192/+194
| | | | | | | 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.
* Fixed test: sort plugin lists.murphy2006-10-171-2/+2
|
* Added functional test task and renamed all test task descriptions.murphy2006-10-171-14/+0
| | | | | | rake test now runs both functional and scanner tests! Deleted stupid classes test.
* Declared Version 0.7.4!murphy2006-10-172-0/+66
| | | | | | Plugin#all_plugin_names is now called #list. Added some basic functional tests and adjusted statistic.rake.
* C++ test added.murphy2006-10-172-0/+1036
| | | | | Ignore *.actual.* beyound test/scanners.
* Renamed tests: .actual.* is (ignored) output, .expected.* is input now.murphy2006-10-1733-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-1574-5/+6
|
* Tests:murphy2006-10-151-9/+77
| | | | | | | | | | | | | | | | - improved coderay_suite.rb (random and shuffled tests, max parameter, scannerlang->lang, sorted test cases...) - changed html output extension to .actual.html to svn:ignore them - fixed some tests (deleted $Id$ etc.) - made XHTML testcase work Scanners: - fixed HTML, Delphi and Nitro scanners thanks to new tests Engine: - Tokens#fix and #fix! added (yet to be tested) - improved Scanner#raise_inspect a bit Converted more files to UNIX format (go away, stinkin' \r!)
* Ruby scanner: deleted regexp highlighting (didn't work anyway)murphy2006-09-283-1/+61
| | | | | HTML highlighter: unknown token classes now yield a CSS class with that name instead of :error A new Ruby test
* Ignore html/tolkien.html.murphy2006-07-111-291/+0
|
* Finally, renamed nitro-xhtml to nitro. Subversion got in the way.murphy2006-07-113-0/+0
|
* Oups, I forgot the totally revamped test system.murphy2006-07-111-0/+150
|
* Ignore XML test output.murphy2006-07-111-198/+0
|
* Totally revamped test system. Nitro will be fixed soon.murphy2006-07-1144-14179/+40865
| | | | | A bunch of new tests. Delphi and XML are now tested, too. bench/example.dump deleted (depends on Ruby version, OS, whatever. Nothing for the repo.)
* Big re-indenting - no more tabs!murphy2006-07-107-111/+111
|
* Test case for open heredoc problem.murphy2006-07-102-0/+3
|
* [BUG] Fixed bug in Ruby-Scanner (input ends with unfinished escape in ↵murphy2006-07-092-0/+3
| | | | | | string) (thanks to bovi again.) Test case added.
* Test suite didn'T work when LANG was set in environment.murphy2006-06-281-1/+1
|
* Fix:murphy2006-06-282-0/+2
| | | | | | | | | | | | | | HTML Scanner: Fixed a nasty bug with invalid entities. Thanks to Daniel Bovensiepen. Scanner: added Scanner.normify. Plugin: small documentation fix. Code statistic: added lib root folder rake_helpers/code_statistics.rb: added ability to include non-Ruby code in the statistics used it to count the mountain of test data There is some mixed space/tab indentation now. Complete 2-space-re-indentation will follow.
* Updated tests.murphy2006-05-111-0/+2
|
* New Version: 0.7.0!murphy2006-04-195-0/+438
| | | | | | | | | | | Adjusted gem.rake. HTML scanner fixed. Enhanced filetype.rb: .rake files, xml, yaml (preparing for YAML scanner.) Enhanced test/ruby/1.in.rb. Added XML scanner with example. plugin.rb: made all_plugin_names public.
* test/suite.rb improved: now takes diff and lang arguments from rake.murphy2006-04-161-6/+7
|
* All scanners revisited not to produce errors unless in DEBUG mode. [thx@Daniel]murphy2006-04-167-1/+4
| | | | | | | Fixed numerization for input not ending with \n. Added test cases in C scanner tests. Added WoNáDo as contributer for last Ruby scanner fix. Updated TODO.
* styles/_map.rb added. :cycnus is now default style. html/css.rb adjusted.murphy2006-04-152-0/+8
| | | | | | | | | | ROADMAP and TODO updated. Ruby scanner: Fixed a bug: Fancy strings don't allow \w delimiters. They _do_ also allow whitespace delimiters, but adding this would cause many scan errors. So I leave this bug unfixed.
* Large update: Scanners for HTML, RHTML and Nitro-XHTML added.murphy2006-04-1014-166/+435
| | | | | | | | | | | | | | | | | | | | | | | | | | | | CSS style changes/enhancments (mainly the new background color for inline code, affects all Ruby code.) Demos and tests adjusted. Plugin: new PluginHost::default method. Scanner: - New setup method - ability to re-use a scanner - ability to keep the tokens - minor changes to token caching and string flattening Encoder: Error if token content is neither String nor Symbol. HTML encoder: - more warnings for unclosed tokens - output now UTF-8 Ruby Scanner: - bug: symbols before => now do not include =; {:foo=>bar} is valid Ruby code - try to close all open tokens - constants now all with specific namespace (for speed, I hope) Styles: new :entity/en class. Test suite now gives hinted HTML output.
* Added HTML scanner!murphy2006-04-044-0/+803
| | | | | | | Added test/html/suite.rb and tolkien.in.html test. Benchmark produces inline line numbers now. Minor changes to Ruby and C scanners. Rakefile: unit tests now in -d mode.
* Ruby Scanner: Capital methods (Kernel#Array etc.) are now highlighted as idents.murphy2006-03-244-56/+56
| | | | | Tests adjusted. highlight.rb updated.
* HTML Encoder: inline numerization corrected.murphy2006-03-231-2/+3
| | | | | | | | New demo: demo/demo_html_list.rb. Some demos adjusted. C Scanner: error messages fixed. Rakefile: test_demos now in debug mode. test/suite.rb is using reusable Scanners now.
* Fixed HTML encoder again. (Run the test, baka!)murphy2006-03-161-0/+371
| | | | | | Added jarh.out.raydebug test output. Fixed a typo in Rakefile.
* Added a test with one-liners (jarh.in.rb)murphy2006-03-161-0/+371
|
* Ruby scanner fixed - nasty bug in ruby/patterns.rb.murphy2006-03-152-0/+0
| | | | | besetzung.in.rb test added. highlight.rb updated.
* New Test: test/ruby/tk-calc.in.rb.murphy2006-02-222-0/+10
| | | | Thanks to mawe.
* plugin.rb: _map loading now without exceptions (doesn't produce rubygem ↵murphy2006-02-202-0/+4
| | | | | | warnings) test/ruby/quotes: second test case added