test/test_plain.rb in jekyll-chatgpt-translate-0.0.35 vs test/test_plain.rb in jekyll-chatgpt-translate-0.0.36

- old
+ new

@@ -83,10 +83,17 @@ 'Hello, dude!', GptTranslate::Plain.new('Hello, [dude]({% post_url 2023-01-01-hello %})!').to_s ) end + def test_quote + assert_equal( + "He said this:\n\n> Life is great!", + GptTranslate::Plain.new("He said this:\n\n\n> Life is great!\n\n").to_s + ) + end + def test_code assert_equal( 'Hello, `Java`!', GptTranslate::Plain.new('Hello, `Java`!').to_s ) @@ -132,9 +139,14 @@ assert_equal( 'This is picture: <img src="a"/>!', GptTranslate::Plain.new('This is picture: <img src="a"/>!').to_s ) assert_equal('<img src="a"/>', GptTranslate::Plain.new('<img src="a"/>').to_s) + end + + def test_html_hr + md = "First\n\n<hr/>\n\nsecond!" + assert_equal(md, GptTranslate::Plain.new(md).to_s) end def test_liquid_tags assert_equal( 'Hello, !',