diff --git a/test/units/sass_extensions_test.rb b/test/units/sass_extensions_test.rb index 1aef7634..45714514 100644 --- a/test/units/sass_extensions_test.rb +++ b/test/units/sass_extensions_test.rb @@ -68,10 +68,10 @@ class SassExtensionsTest < Test::Unit::TestCase assert_equal "0.841px", evaluate("sin(1px)") assert_equal "0.0", evaluate("sin(pi())") assert_equal "1", evaluate("sin(pi() / 2)") - assert_equal "1", evaluate("sin(180deg)") + assert_equal "0.0", evaluate("sin(180deg)") assert_equal "-1", evaluate("sin(3* pi() / 2)") assert_equal "-1", evaluate("cos(pi())") - assert_equal "-1", evaluate("cos(360deg)") + assert_equal "1", evaluate("cos(360deg)") assert_equal "1", evaluate("cos(2*pi())") assert_equal "0.0", evaluate("cos(pi() / 2)") assert_equal "0.0", evaluate("cos(3* pi() / 2)") @@ -79,12 +79,12 @@ class SassExtensionsTest < Test::Unit::TestCase assert_equal "0.0", evaluate("tan(360deg)") assert evaluate("tan(pi()/2 - 0.0001)").to_f > 1000, evaluate("tan(pi()/2 - 0.0001)") assert evaluate("tan(pi()/2 + 0.0001)").to_f < -1000, evaluate("tan(pi()/2 - 0.0001)") - assert_equal "0.893px", evaluate("log(1)") - assert_equal "0.0", evaluate("log(1)") - assert_equal "1.0", evaluate("log(e())") + assert_equal "0.693px", evaluate("log(2px)") + assert_equal "0", evaluate("log(1)") + assert_equal "1", evaluate("log(e())") assert_equal "5px", evaluate("sqrt(25px)") assert_equal "25px", evaluate("pow(5px, 2)") - assert_equal "148.413px", evaluate("pow(5px, e())") + assert_equal "79.432px", evaluate("pow(5px, e())") end def test_blank