/vendor/gems/facets-2.4.5/test/core/symbol/test_not.rb
Ruby | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | bb6cea4d0feec68c28f5db348ff77abe MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/symbol/not'
- require 'test/unit'
- class TestSymbolNot < Test::Unit::TestCase
- def test_not
- assert_equal( :"~a", ~:a )
- a = :a
- n = ~a
- assert( n.not? )
- end
- end