Sha256: 49ff2f8440b3e018b917e3b357af59ca34f399bf3e5489051937d647937b1af1

Contents?: true

Size: 824 Bytes

Versions: 1

Compression:

Stored size: 824 Bytes

Contents

# encoding: utf-8

require File.join(File.dirname(__FILE__), 'helper')

class TestMosquitto < MosquittoTestCase
  def test_version
    assert_equal 1003001, Mosquitto.version
  end

  def test_constants
    assert_equal 0, Mosquitto::AT_MOST_ONCE
    assert_equal 1, Mosquitto::AT_LEAST_ONCE
    assert_equal 2, Mosquitto::EXACTLY_ONCE

    assert_equal 0, Mosquitto::SSL_VERIFY_NONE
    assert_equal 1, Mosquitto::SSL_VERIFY_PEER

    assert_equal 0, Mosquitto::LOG_NONE
    assert_equal 1, Mosquitto::LOG_INFO
    assert_equal 2, Mosquitto::LOG_NOTICE
    assert_equal 4, Mosquitto::LOG_WARNING
    assert_equal 8, Mosquitto::LOG_ERR
    assert_equal 16, Mosquitto::LOG_DEBUG
    assert_equal 32, Mosquitto::LOG_SUBSCRIBE
    assert_equal 64, Mosquitto::LOG_UNSUBSCRIBE
    assert_equal 65535, Mosquitto::LOG_ALL
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mosquitto-0.3 test/test_mosquitto.rb