PageRenderTime 53ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/symbol/test_not.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. require 'facets/symbol/not'
  2. require 'test/unit'
  3. class TestSymbolNot < Test::Unit::TestCase
  4. def test_not
  5. assert_equal( :"~a", ~:a )
  6. a = :a
  7. n = ~a
  8. assert( n.not? )
  9. end
  10. end