Rename new Ruby assert functions used in test-suite

This commit is contained in:
William S Fulton 2017-03-31 07:32:04 +01:00
commit d56c8ef9ff

View file

@ -1,12 +1,7 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# #
# A simple function to create useful asserts # Useful assert functions
# #
#
#
#
#
# #
# Exception raised when some swig binding test fails # Exception raised when some swig binding test fails
@ -16,15 +11,15 @@ end
# #
# simple assertions. strings are not needed as arguments. # Simple assertions. Strings are not needed as arguments.
# #
def simple_assert_equal(a, b) def swig_assert_equal_simple(a, b)
unless a == b unless a == b
raise SwigRubyError.new("\n#{a} expected but was \n#{b}") raise SwigRubyError.new("\n#{a} expected but was \n#{b}")
end end
end end
def simple_assert(a) def swig_assert_simple(a)
unless a unless a
raise SwigRubyError.new("assertion falied.") raise SwigRubyError.new("assertion falied.")
end end