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

Version Path
ruboto-0.5.2 assets/test/assets/scripts/test_helper.rb
ruboto-core-0.5.1 assets/test/assets/scripts/test_helper.rb
ruboto-core-0.4.1.rc.4 assets/test/assets/scripts/test_helper.rb
ruboto-core-0.4.0 assets/test/assets/scripts/test_helper.rb