test/test_plain.rb in jekyll-chatgpt-translate-0.0.24 vs test/test_plain.rb in jekyll-chatgpt-translate-0.0.25
- old
+ new
@@ -40,29 +40,29 @@
assert_equal('Hi, dude!', GptTranslate::Plain.new(" Hi,\ndude!\n").to_s)
end
def test_lists
assert_equal(
- "first\n\nsecond\n\nthird",
+ "* first\n\n* second\n\n* third",
GptTranslate::Plain.new("* first\n\n* second\n\n* third").to_s
)
assert_equal(
- 'first',
+ '* first',
GptTranslate::Plain.new("* first\n\n\n\n").to_s
)
end
def test_ordered_list
assert_equal(
- "first\n\nsecond\n\nthird",
+ "1. first\n\n1. second\n\n1. third",
GptTranslate::Plain.new("1. first\n\n2. second\n\n3. third").to_s
)
end
def test_compact_list
assert_equal(
- "first\n\nsecond\n\nthird",
+ "* first\n\n* second\n\n* third",
GptTranslate::Plain.new("* first\n* second\n* third").to_s
)
end
def test_links
@@ -149,14 +149,14 @@
def test_big_text
expected = "Hi, dear **friend**!
In this *lovely* letter I will explain how objects work in C++:
-Declare a class
+* Declare a class
-Make an instance of it
+* Make an instance of it
-Delete the instance
+* Delete the instance
## More details
Something like this: