Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Feb 27, 2019
1 parent e730f8f commit ba2f536
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/racc/com/headius/racc/Cparse.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import org.jruby.runtime.load.Library;

public class Cparse implements Library {
public static final String RACC_VERSION = "1.4.14"; // TODO: parse from Cparse.c
public static final String RACC_VERSION = "1.4.15"; // TODO: parse from Cparse.c

public enum TokenType {
DEFAULT(-1),
Expand Down
2 changes: 1 addition & 1 deletion ext/racc/cparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Important Constants
----------------------------------------------------------------------- */

#define RACC_VERSION "1.4.14"
#define RACC_VERSION "1.4.15"

#define DEFAULT_TOKEN -1
#define ERROR_TOKEN 1
Expand Down
2 changes: 1 addition & 1 deletion lib/racc/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#

module Racc
VERSION = '1.4.14'
VERSION = '1.4.15'
Version = VERSION
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
end
6 changes: 5 additions & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,16 @@ def assert_exec(asset)
end
end

def strip_version(source)
source.sub(/This file is automatically generated by Racc \d+\.\d+\.\d+/, '')
end

def assert_output_unchanged(asset)
file = File.basename(asset, '.y')

expected = File.read("#{REGRESS_DIR}/#{file}")
actual = File.read("#{TAB_DIR}/#{file}")
result = (expected == actual)
result = (strip_version(expected) == strip_version(actual))

assert(result, "Output of test/assets/#{file}.y differed from " \
"expectation. Try compiling it and diff with test/regress/#{file}.")
Expand Down

0 comments on commit ba2f536

Please sign in to comment.