features/typogrowth.feature in typogrowth-0.9.0 vs features/typogrowth.feature in typogrowth-0.9.1
- old
+ new
@@ -12,11 +12,11 @@
| input | output |
| "And God said \"∇×(∇×F) = ∇(∇·F) − ∇2F\" and there was light." | "And God said “∇×(∇×F) = ∇(∇·F) − ∇2F” and there was light." |
| "And God said \"I--heard \"Booh \"Bah\" Booh\" and \"Bam\" in heaven\" and there was light." | "And God said “I—heard ‘Booh “Bah” Booh’ and ‘Bam’ in heaven” and there was light." |
| "And God said \"I - heard \"Booh Bah Booh\" and \"Bam\" in heaven\" and there was light." | "And God said “I—heard ‘Booh Bah Booh’ and ‘Bam’ in heaven” and there was light." |
| "And God said \"Oslo coordinates are: 59°57′N 10°45′E\" and there was light." | "And God said “Oslo coordinates are: 59°57′N 10°45′E” and there was light." |
- | "And God said \"That's a 6.3\" man, he sees sunsets at 10°20'30\" E.\" and there was light." | "And God said “That’s a 6.3″ man, he sees sunsets at 10°20′30″ E.” and there was light." |
+ | "And God said \"That's a 6.3\" man, he sees sunsets at 10°20'30\" E.\" and there was light." | "And God said “That’s a 6.3″ man, he sees sunsets at 10°20′30″ E.” and there was light." |
| "And God said \"Foo\" , and there was light." | "And God said “Foo,” and there was light." |
| "And God said \"Baz heard 'Foos' Bar' once\" , and there was light." | "And God said “Baz heard ‘Foos’ Bar’ once,” and there was light." |
| "And God, loving ellipsis, said.... And..." | "And God, loving ellipsis, said… And…" |
Scenario Outline: Quotes and punctuation in Russian
@@ -26,12 +26,12 @@
And the call to string’s typo with lang "ru" should equal to <output>
And neither single nor double quotes are left in the string
Examples:
| input | output |
- | "И Бог сказал: \"Я - слышу \"Бум\" и \"Бам\" где-то там\" , и стало светло." | "И Бог сказал: «Я — слышу „Бум“ и „Бам“ где-то там», и стало светло." |
- | "И Бог сказал: \"Я - слышу \"Бум \"и\" Бам\" где-то там\" , и стало светло." | "И Бог сказал: «Я — слышу „Бум «и» Бам“ где-то там», и стало светло." |
+ | "И Бог сказал: \"Я - слышу \"Бум\" и \"Бам\" где-то там\" , и стало светло." | "И Бог сказал: «Я — слышу „Бум“ и „Бам“ где-то там», и стало светло." |
+ | "И Бог сказал: \"Я - слышу \"Бум \"и\" Бам\" где-то там\" , и стало светло." | "И Бог сказал: «Я — слышу „Бум «и» Бам“ где-то там», и стало светло." |
| "Строка со ссылкой: http://wikipedia.org (ссылка)." | "Строка со ссылкой: http://wikipedia.org (ссылка)." |
Scenario Outline: Spacing before/after punctuation
Given the input string is <input>
When input string is processed with Typogrowl’s typography parser
@@ -50,5 +50,16 @@
Scenario: Inplace string modification
Given the input string is "Foo 'Bar' Baz"
When input string is modified inplace with typo!
Then typoed result should equal to "Foo “Bar” Baz"
+
+ Scenario Outline: Orphans handling
+ Given the input string is <input>
+ When input string is processed with Typogrowl’s typography parser
+ Then the typoed result should equal to <output>
+ And the call to string’s typo should equal to <output>
+
+ Examples:
+ | input | output |
+ | "This is a cat." | "This is a cat." |
+