Skip to content

Commit

Permalink
Fix Overload test for Ruby 3.4
Browse files Browse the repository at this point in the history
Error message formatting got rid of the backtick.
  • Loading branch information
jasonroelofs committed Jan 28, 2025
1 parent b99f9bb commit bcbd067
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_Overloads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "embed_ruby.hpp"
#include <rice/rice.hpp>
#include <rice/stl.hpp>
#include <ruby/version.h>

using namespace Rice;

Expand Down Expand Up @@ -513,8 +514,12 @@ TESTCASE(int_conversion_4)

#ifdef _WIN32
const char* expected = "bignum too big to convert into `long'";
#else
#if RUBY_API_VERSION_MAJOR == 3 && RUBY_API_VERSION_MINOR >= 4
const char* expected = "integer 4398046511104 too big to convert to 'short'";
#else
const char* expected = "integer 4398046511104 too big to convert to `short'";
#endif
#endif

ASSERT_EXCEPTION_CHECK(
Expand Down

0 comments on commit bcbd067

Please sign in to comment.