summaryrefslogtreecommitdiff
path: root/test/ruby/test_condition.rb
blob: 2ef2e0db3052acac91f72acdd2fa24c63d4a38ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'test/unit'

$KCODE = 'none'

class TestCondition < Test::Unit::TestCase

  # [should] first test to see if we can run the tests.

  def test_condition
    $x = '0';

    $x == $x && assert(true)
    $x != $x && assert(false)
    $x == $x || assert(false)
    $x != $x || assert(true)

  end
end