test/test_plain.rb in jekyll-chatgpt-translate-0.0.29 vs test/test_plain.rb in jekyll-chatgpt-translate-0.0.30

- old
+ new

@@ -38,9 +38,14 @@ # assert_equal('Hello, Walter!', GptTranslate::Plain.new('Hello, ~Walter~!').to_s) assert_equal("Hi\n\nBye", GptTranslate::Plain.new(" Hi\n\nBye\n\n\n").to_s) assert_equal('Hi, dude!', GptTranslate::Plain.new(" Hi,\ndude!\n").to_s) end + def test_strip_meta_markup + assert_equal('Hello, world!', GptTranslate::Plain.new("{:name='boom'}\nHello, world!").to_s) + assert_equal('Hello, world!', GptTranslate::Plain.new("Hello, world!\n{: .foo-class}").to_s) + end + def test_lists assert_equal( "* first\n\n* second\n\n* third", GptTranslate::Plain.new("* first\n\n* second\n\n* third").to_s )