aboutsummaryrefslogtreecommitdiff
path: root/test/test-printing.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-07 19:49:27 -0500
committerSean Allred <code@seanallred.com>2015-01-07 19:49:27 -0500
commit1dd6ac98ec65ff4359e56adf1cedfc745026145b (patch)
treec04ab9b968a65a3907eca33754e2c784610a72e1 /test/test-printing.el
parent27136e435bc6928161df2e16e3e8528227eae014 (diff)
parentcd0c7c622865d0ab3b628a96d93537bcfe0e76d9 (diff)
Merge pull request #217 from vermiculus/really-fix-filling
Really fix filling
Diffstat (limited to 'test/test-printing.el')
-rw-r--r--test/test-printing.el56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/test-printing.el b/test/test-printing.el
index 2857cb7..c477b28 100644
--- a/test/test-printing.el
+++ b/test/test-printing.el
@@ -71,3 +71,59 @@ after being run through `sx-question--tag-format'."
(sx--user-@name '((display_name . "ĤÞßĐŁŘĞĜÝŸÑŃŚŞŠŜŻŹŽÇĆČĈÙÚÛÜŬŮÒÓÔÕÖØŐÐÌÍÎÏıÈÉÊËĘÀÅÁÂÄÃÅĄĴ")))
"@HTHssDLRGGYYNNSSSSZZZCCCCUUUUUUOOOOOOOOIIIIiEEEEEAAAAAAAAJ")))
+(ert-deftest sx-question-mode--fill-and-fontify ()
+ "Check complicated questions are filled correctly."
+ (should
+ (equal
+ (sx-question-mode--fill-and-fontify
+ "Creating an account on a new site requires you to log into that site using *the same credentials you used on existing sites.* For instance, if you used the Stack Exchange login method, you'd...
+
+1. Click the \"Log in using Stack Exchange\" button:
+
+ ![][1]
+
+2. Enter your username and password (yes, even if you *just did this* to log into, say, Stack Overflow) and press the \"Log In\" button:
+
+ ![][2]
+
+3. Confirm the creation of the new account:
+
+ ![][3]
+
+ some code block
+ some code block
+ some code block
+ some code block
+ some code block
+ some code block
+
+ [1]: http://i.stack.imgur.com/ktFTs.png
+ [2]: http://i.stack.imgur.com/5l2AY.png
+ [3]: http://i.stack.imgur.com/22myl.png")
+ "Creating an account on a new site requires you to log into that site
+using *the same credentials you used on existing sites.* For instance,
+if you used the Stack Exchange login method, you'd...
+
+1. Click the \"Log in using Stack Exchange\" button:
+
+ ![][1]
+
+2. Enter your username and password (yes, even if you *just did this*
+ to log into, say, Stack Overflow) and press the \"Log In\" button:
+
+ ![][2]
+
+3. Confirm the creation of the new account:
+
+ ![][3]
+
+ some code block
+ some code block
+ some code block
+ some code block
+ some code block
+ some code block
+
+ [1]: http://i.stack.imgur.com/ktFTs.png
+ [2]: http://i.stack.imgur.com/5l2AY.png
+ [3]: http://i.stack.imgur.com/22myl.png")))