repo.or.cz
/
ruby-80x24.org.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* 2022-01-18 [ci skip]
[ruby-80x24.org.git]
/
test
/
ruby
/
test_condition.rb
blob
ab0ffc4b6a25597d1cb67b621dd9ed799173672b
1
# frozen_string_literal: false
2
require 'test/unit'
3
4
class TestCondition < Test::Unit::TestCase
5
6
# [should] first test to see if we can run the tests.
7
8
def test_condition
9
$x = '0';
10
11
$x == $x && assert(true)
12
$x != $x && assert(false)
13
$x == $x || assert(false)
14
$x != $x || assert(true)
15
16
end
17
end