Permalink
Browse files

one more test

  • Loading branch information...
1 parent 42eb7f5 commit 575ab313ce71d3bafc77c8fca815a204e9bcf158 @ashchan committed Mar 29, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/matter_test.rb
View
@@ -1,3 +1,4 @@
+# encoding: utf-8
require_relative 'test_helper'
class MatterTest < MiniTest::Unit::TestCase
@@ -7,6 +8,11 @@ def test_new_instance
assert_kind_of Matter, Matter.new
end
+ def test_instance_aqi
+ data = Matter.new :city => "舟山", :pm => 36
+ assert_equal 102, data.aqi.first
+ end
+
def test_aqi_calculation
[
[0, 0], [15.4, 50],

0 comments on commit 575ab31

Please sign in to comment.