features/typogrowth.feature in typogrowth-0.9.1 vs features/typogrowth.feature in typogrowth-0.9.3
- old
+ new
@@ -28,12 +28,12 @@
Examples:
| input | output |
| "И Бог сказал: \"Я - слышу \"Бум\" и \"Бам\" где-то там\" , и стало светло." | "И Бог сказал: «Я — слышу „Бум“ и „Бам“ где-то там», и стало светло." |
| "И Бог сказал: \"Я - слышу \"Бум \"и\" Бам\" где-то там\" , и стало светло." | "И Бог сказал: «Я — слышу „Бум «и» Бам“ где-то там», и стало светло." |
- | "Строка со ссылкой: http://wikipedia.org (ссылка)." | "Строка со ссылкой: http://wikipedia.org (ссылка)." |
-
+ | "Строка со ссылкой: 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
Then the typoed result should equal to <output>
And the call to string’s typo should equal to <output>
@@ -45,21 +45,25 @@
| "It’s raining .Pity." | "It’s raining. Pity." |
| "Link http://wikipedia.org here." | "Link http://wikipedia.org here." |
| "Here is http://wikipedia.org. See?." | "Here is http://wikipedia.org. See?." |
| "Here is exclamation ellipsis!.." | "Here is exclamation ellipsis!.." |
| "Here is exclamation ellipsis! . ." | "Here is exclamation ellipsis!.." |
+ | "Here we go ; semicolon .. ." | "Here we go; semicolon…" |
+ | "Here are ' english ' quotes . ." | "Here are ‘english’ quotes.." |
+ | "Here are " english " quotes . ." | "Here are “english” quotes.." |
+ | "Here we go : colon . ." | "Here we go: colon.." |
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." |
-
+