sleepy_penguin.git  about / heads / tags
Linux I/O events for Ruby
blob 56caefb505b73f8e552e678ccaa2dcfa53304279 358 bytes (raw)
$ git show pu:test/test_constants.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
require 'sleepy_penguin/sp'
require_relative 'helper'

class TestConstants < Test::Unit::TestCase
  def test_constants
    assert_equal SleepyPenguin::SLEEPY_PENGUIN_VERSION,
                 SP::SLEEPY_PENGUIN_VERSION
    v = SP::SLEEPY_PENGUIN_VERSION.split('.')

    (0..2).each do |i|
      assert_equal v[i], v[i].to_i.to_s, v.inspect
    end
  end
end

git clone https://yhbt.net/sleepy_penguin.git