Sha256: 7ca1185278c673f60278114cd7a09818a3782d90a85c3319574a1a9fda88c9b0

Contents?: true

Size: 672 Bytes

Versions: 2

Compression:

Stored size: 672 Bytes

Contents

#!/usr/bin/env ruby
DIRNAME = File.expand_path File.dirname(__FILE__)
Dir.chdir(DIRNAME)

ETEST_TEST=true

require "etest-unit"

# ---------------------------------------------------------------------

module String::Etest
  def test_camelize
    assert_equal "x", "X".underscore
    assert_equal "xa_la_nder", "XaLaNder".underscore
  end

  def test_underscore
    assert_equal "X", "x".camelize
    assert_equal "XaLaNder", "xa_la_nder".camelize
  end
end

module Fixnum::Etest
  def test_success
    $etests_did_run = true
    assert true
  end
end

String.etest

$etests_did_run = false
Fixnum.etest
exit(0) if $etests_did_run

STDERR.puts "Etests didn't run"
exit(1)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
etest-unit-0.7.1 test/etest_test.rb
etest-unit-0.7.0 test/etest_test.rb