1require 'test/unit'
2
3class TestIfunless < Test::Unit::TestCase
4  def test_if_unless
5    x = 'test';
6    assert(if x == x then true else false end)
7    bad = false
8    unless x == x
9      bad = true
10    end
11    assert(!bad)
12    assert(unless x != x then true else false end)
13  end
14end
15