test/haml/util_test.rb in haml-edge-2.3.169 vs test/haml/util_test.rb in haml-edge-2.3.170
- old
+ new
@@ -84,9 +84,14 @@
def test_enum_with_index
assert_equal(%w[foo0 bar1 baz2],
enum_with_index(%w[foo bar baz]).map {|s, i| "#{s}#{i}"})
end
+ def test_ord
+ assert_equal(102, ord("f"))
+ assert_equal(98, ord("bar"))
+ end
+
def test_caller_info
assert_equal(["/tmp/foo.rb", 12, "fizzle"], caller_info("/tmp/foo.rb:12: in `fizzle'"))
assert_equal(["/tmp/foo.rb", 12, nil], caller_info("/tmp/foo.rb:12"))
assert_equal(["(haml)", 12, "blah"], caller_info("(haml):12: in `blah'"))
assert_equal(["", 12, "boop"], caller_info(":12: in `boop'"))