Sha256: d5f7850b90d5d6da0248241a756442aa4300aaf54c66bbcfdf875eb8afeb5706
Contents?: true
Size: 490 Bytes
Versions: 4
Compression:
Stored size: 490 Bytes
Contents
require 'java' def assert(value, message = nil) raise "#{"#{message}\n" if message}#{value.inspect} expected to be true" unless value end def assert_equal(expected, actual, message = nil) raise "#{"#{message}\n" if message}'#{expected}' expected, but got '#{actual}'" unless expected == actual end def assert_less_than_or_equal(limit, actual, message = nil) raise "#{"#{message}\n" if message}Expected '#{actual}' to be less than or equal to '#{limit}'" unless actual <= limit end
Version data entries
4 entries across 4 versions & 2 rubygems