summaryrefslogtreecommitdiffstats
path: root/utils/textgeneration.go
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-11-10 22:50:50 +0100
committerFlorian Orben <florian.orben@gmail.com>2015-11-10 23:45:05 +0100
commita1d40102a2f857c5dc79ed2c0066e1967e8505b8 (patch)
treeae3e93e7a43eefb8b278c984be05cfb95b42b2a5 /utils/textgeneration.go
parent7ccc5410541268143e095967b2b6c5681460c368 (diff)
downloadchat-a1d40102a2f857c5dc79ed2c0066e1967e8505b8.tar.gz
chat-a1d40102a2f857c5dc79ed2c0066e1967e8505b8.tar.bz2
chat-a1d40102a2f857c5dc79ed2c0066e1967e8505b8.zip
add unit test
Diffstat (limited to 'utils/textgeneration.go')
-rw-r--r--utils/textgeneration.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/utils/textgeneration.go b/utils/textgeneration.go
index 0053b5279..affd65bc1 100644
--- a/utils/textgeneration.go
+++ b/utils/textgeneration.go
@@ -96,6 +96,36 @@ f(x) = \int_{-\infty}^\infty
` + "```" + `
* This was some tex code*
`,
+
+ `**[5]** - **[Markdown and automatic preview of content test]**
+
+## This should display a preview for the given vine url
+
+Some text *before* the link
+And a smiley :)
+https://vine.co/v/eDeVgbFrt9L
+
+Some more text here
+and here
+and even more here
+`,
+
+ `**[6]** - **[More markdown and automatic preview of content test]**
+
+## Only the first given url should render an "attachment"
+
+Lets also add a table here, because why not
+| Left-Aligned | Center Aligned | Right Aligned |
+| :------------ |:---------------:| -----:|
+| Left column 1 | this text | $100 |
+| Left column 2 | is | $10 |
+| Left column 3 | centered | $1 |
+
+Wiki should render:
+http://en.wikipedia.org/wiki/Foo
+https://vine.co/v/eDeVgbFrt9L
+`,
+
/* `**[2] [Username Linking Test]**
I saw @alice--and I said "Hi @alice!" then "What's up @alice?" and then @alice, was totally @alice; she just "@alice"'d me and walked on by. That's @alice...
@alice‽‽