Sha256: c671b364f6b57ba7a3d9065ed09ff98d37755eaa9fb228f560e4c846cc04bc4e

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

#!/usr/bin/env ruby
require 'stringio'
require 'test/unit'
require 'rubygems'; require 'require_relative'
require_relative '../../app/condition'

class TestAppCondition < Test::Unit::TestCase
  include Trepan::Condition
  
  def test_basic
    assert valid_condition?('1+2')
    old_stderr = $stderr
    new_stdout = StringIO.new
    $stderr = new_stdout
    assert_equal nil, valid_condition?('1+')
    $stderr = old_stderr
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbx-trepanning-0.2.1-universal-rubinius-2.0 test/unit/test-app-condition.rb
rbx-trepanning-0.2.1-universal-rubinius-1.2 test/unit/test-app-condition.rb
rbx-trepanning-0.2.0-universal-rubinius-2.0 test/unit/test-app-condition.rb
rbx-trepanning-0.1.0-universal-rubinius-1.2 test/unit/test-app-condition.rb
rbx-trepanning-0.0.8-universal-rubinius-1.2 test/unit/test-app-condition.rb
rbx-trepanning-0.0.7-universal-rubinius-1.2 test/unit/test-app-condition.rb