File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 4646import org .jruby .runtime .load .Library ;
4747
4848public class Cparse implements Library {
49- public static final String RACC_VERSION = "1.4.14 " ; // TODO: parse from Cparse.c
49+ public static final String RACC_VERSION = "1.4.15 " ; // TODO: parse from Cparse.c
5050
5151 public enum TokenType {
5252 DEFAULT (-1 ),
Original file line number Diff line number Diff line change 1717 Important Constants
1818----------------------------------------------------------------------- */
1919
20- #define RACC_VERSION "1.4.14 "
20+ #define RACC_VERSION "1.4.15 "
2121
2222#define DEFAULT_TOKEN -1
2323#define ERROR_TOKEN 1
Original file line number Diff line number Diff line change 1010#
1111
1212module Racc
13- VERSION = '1.4.14 '
13+ VERSION = '1.4.15 '
1414 Version = VERSION
1515 Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
1616end
Original file line number Diff line number Diff line change @@ -72,12 +72,16 @@ def assert_exec(asset)
7272 end
7373 end
7474
75+ def strip_version ( source )
76+ source . sub ( /This file is automatically generated by Racc \d +\. \d +\. \d +/ , '' )
77+ end
78+
7579 def assert_output_unchanged ( asset )
7680 file = File . basename ( asset , '.y' )
7781
7882 expected = File . read ( "#{ REGRESS_DIR } /#{ file } " )
7983 actual = File . read ( "#{ TAB_DIR } /#{ file } " )
80- result = ( expected == actual )
84+ result = ( strip_version ( expected ) == strip_version ( actual ) )
8185
8286 assert ( result , "Output of test/assets/#{ file } .y differed from " \
8387 "expectation. Try compiling it and diff with test/regress/#{ file } ." )
You can’t perform that action at this time.
0 commit comments