Fix the order of assert_equal arguments in a test.

This commit is contained in:
Nathan Weizenbaum 2008-04-24 12:07:52 -07:00
parent f48294c4ed
commit 817448d31e
1 changed files with 5 additions and 5 deletions

View File

@ -22,14 +22,14 @@ class HelperTest < Test::Unit::TestCase
end end
def test_flatten def test_flatten
assert_equal(flatten("FooBar"), "FooBar") assert_equal("FooBar", flatten("FooBar"))
assert_equal(flatten("Foo\rBar"), "FooBar") assert_equal("FooBar", flatten("Foo\rBar"))
assert_equal(flatten("Foo\nBar"), "Foo&#x000A;Bar") assert_equal("Foo&#x000A;Bar", flatten("Foo\nBar"))
assert_equal(flatten("Hello\nWorld!\nYOU ARE \rFLAT?\n\rOMGZ!"), assert_equal("Hello&#x000A;World!&#x000A;YOU ARE FLAT?&#x000A;OMGZ!",
"Hello&#x000A;World!&#x000A;YOU ARE FLAT?&#x000A;OMGZ!") flatten("Hello\nWorld!\nYOU ARE \rFLAT?\n\rOMGZ!"))
end end
def test_list_of_should_render_correctly def test_list_of_should_render_correctly