diff options
Diffstat (limited to 'test/ruby/test_not.rb')
| -rw-r--r-- | test/ruby/test_not.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/test_not.rb b/test/ruby/test_not.rb new file mode 100644 index 0000000000..12e4c4b696 --- /dev/null +++ b/test/ruby/test_not.rb @@ -0,0 +1,13 @@ +# 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 |
