mirror of https://github.com/zulip/zulip.git
55 lines
1.7 KiB
JSON
55 lines
1.7 KiB
JSON
|
{
|
||
|
"regular_tests": [
|
||
|
{
|
||
|
"name": "slack_link",
|
||
|
"input": ">Google logo today:\n><https://www.google.com/images/srpr/logo4w.png>\n>Kinda boring",
|
||
|
"conversion_output": ">Google logo today:\n>https://www.google.com/images/srpr/logo4w.png\n>Kinda boring"
|
||
|
},
|
||
|
{
|
||
|
"name": "slack_link_with_pipe",
|
||
|
"input": ">Google logo today:\n><https://foo.com|foo>\n>Kinda boring",
|
||
|
"conversion_output": ">Google logo today:\n>https://foo.com|foo\n>Kinda boring"
|
||
|
},
|
||
|
{
|
||
|
"name": "valid_strikethrough_test",
|
||
|
"input": "(~str ike!~, text. ~Also ~)",
|
||
|
"conversion_output": "(~~str ike!~~, text. ~~Also ~~)"
|
||
|
},
|
||
|
{
|
||
|
"name": "invalid_strikethrough_test",
|
||
|
"input": "Mid~word~ strike. Also ~~strike~~)",
|
||
|
"conversion_output": "Mid~word~ strike. Also ~~strike~~)"
|
||
|
},
|
||
|
{
|
||
|
"name": "valid_italic_test",
|
||
|
"input": "ital ^_lic_, _wo r@d_.",
|
||
|
"conversion_output": "ital ^*lic*, *wo r@d*."
|
||
|
},
|
||
|
{
|
||
|
"name": "invalid_italic_test",
|
||
|
"input": "mid_word_, @_italics_",
|
||
|
"conversion_output": "mid_word_, @_italics_"
|
||
|
},
|
||
|
{
|
||
|
"name": "valid_bold_test",
|
||
|
"input": "(*text*} and normal :* bold*.",
|
||
|
"conversion_output": "(**text**} and normal :** bold**."
|
||
|
},
|
||
|
{
|
||
|
"name": "invalid_bold_test",
|
||
|
"input": "*mid*word **word**",
|
||
|
"conversion_output": "*mid*word **word**"
|
||
|
},
|
||
|
{
|
||
|
"name": "bold_and_strike_conversion",
|
||
|
"input": "~*bold*~ and *~strike~*.",
|
||
|
"conversion_output": "~~**bold**~~ and **~~strike~~**."
|
||
|
},
|
||
|
{
|
||
|
"name": "italic_and_strike_conversion",
|
||
|
"input": "_~italic~_ and ~_strike_~",
|
||
|
"conversion_output": "*~~italic~~* and ~~*strike*~~"
|
||
|
}
|
||
|
]
|
||
|
}
|