1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby/test_not.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
299 B
Ruby
Raw Normal View History

# frozen_string_literal: false
require 'test/unit'
class TestNot < Test::Unit::TestCase
def test_not_with_grouped_expression
assert_equal(false, (not (true)))
assert_equal(true, (not (false)))
end
def test_not_with_empty_grouped_expression
assert_equal(true, (not ()))
end
end