Rename new Ruby assert functions used in test-suite
This commit is contained in:
parent
b8d383cb4a
commit
d56c8ef9ff
1 changed files with 4 additions and 9 deletions
|
|
@ -1,12 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
#
|
||||
# A simple function to create useful asserts
|
||||
# Useful assert functions
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# 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
|
||||
raise SwigRubyError.new("\n#{a} expected but was \n#{b}")
|
||||
end
|
||||
end
|
||||
|
||||
def simple_assert(a)
|
||||
def swig_assert_simple(a)
|
||||
unless a
|
||||
raise SwigRubyError.new("assertion falied.")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue