|
| 1 | +// This file is auto-generated by the build script |
| 2 | +// Please, do not modify it manually |
| 3 | + |
| 4 | +use super::test_markdown_html; |
| 5 | + |
| 6 | +#[test] |
| 7 | +fn strikethrough_test_1() { |
| 8 | + let original = r##"~~This is *stricken out*~~ |
| 9 | +"##; |
| 10 | + let expected = r##"<p><del>This is <em>stricken out</em></del></p> |
| 11 | +"##; |
| 12 | + |
| 13 | + test_markdown_html(original, expected, false, false, false); |
| 14 | +} |
| 15 | + |
| 16 | +#[test] |
| 17 | +fn strikethrough_test_2() { |
| 18 | + let original = r##"~~This is \~\~stricken~~ |
| 19 | +"##; |
| 20 | + let expected = r##"<p><del>This is ~~stricken</del></p> |
| 21 | +"##; |
| 22 | + |
| 23 | + test_markdown_html(original, expected, false, false, false); |
| 24 | +} |
| 25 | + |
| 26 | +#[test] |
| 27 | +fn strikethrough_test_3() { |
| 28 | + let original = r##"This~~is~~stricken |
| 29 | +"##; |
| 30 | + let expected = r##"<p>This<del>is</del>stricken</p> |
| 31 | +"##; |
| 32 | + |
| 33 | + test_markdown_html(original, expected, false, false, false); |
| 34 | +} |
| 35 | + |
| 36 | +#[test] |
| 37 | +fn strikethrough_test_4() { |
| 38 | + let original = r##"~~This~~is~~stricken~~ |
| 39 | +"##; |
| 40 | + let expected = r##"<p><del>This</del>is<del>stricken</del></p> |
| 41 | +"##; |
| 42 | + |
| 43 | + test_markdown_html(original, expected, false, false, false); |
| 44 | +} |
| 45 | + |
| 46 | +#[test] |
| 47 | +fn strikethrough_test_5() { |
| 48 | + let original = r##"Here I strike out an exclamation point~~!~~. |
| 49 | +"##; |
| 50 | + let expected = r##"<p>Here I strike out an exclamation point<del>!</del>.</p> |
| 51 | +"##; |
| 52 | + |
| 53 | + test_markdown_html(original, expected, false, false, false); |
| 54 | +} |
| 55 | + |
| 56 | +#[test] |
| 57 | +fn strikethrough_test_6() { |
| 58 | + let original = r##"~This is stricken out~ |
| 59 | +"##; |
| 60 | + let expected = r##"<p><del>This is stricken out</del></p> |
| 61 | +"##; |
| 62 | + |
| 63 | + test_markdown_html(original, expected, false, false, false); |
| 64 | +} |
| 65 | + |
| 66 | +#[test] |
| 67 | +fn strikethrough_test_7() { |
| 68 | + let original = r##"~This is \~stricken~ |
| 69 | +"##; |
| 70 | + let expected = r##"<p><del>This is ~stricken</del></p> |
| 71 | +"##; |
| 72 | + |
| 73 | + test_markdown_html(original, expected, false, false, false); |
| 74 | +} |
| 75 | + |
| 76 | +#[test] |
| 77 | +fn strikethrough_test_8() { |
| 78 | + let original = r##"This~is~nothing |
| 79 | +"##; |
| 80 | + let expected = r##"<p>This~is~nothing</p> |
| 81 | +"##; |
| 82 | + |
| 83 | + test_markdown_html(original, expected, false, false, false); |
| 84 | +} |
| 85 | + |
| 86 | +#[test] |
| 87 | +fn strikethrough_test_9() { |
| 88 | + let original = r##"~This~is~nothing~ |
| 89 | +"##; |
| 90 | + let expected = r##"<p><del>This~is~nothing</del></p> |
| 91 | +"##; |
| 92 | + |
| 93 | + test_markdown_html(original, expected, false, false, false); |
| 94 | +} |
| 95 | + |
| 96 | +#[test] |
| 97 | +fn strikethrough_test_10() { |
| 98 | + let original = r##"Here I fail to strike out an exclamation point~!~. |
| 99 | +"##; |
| 100 | + let expected = r##"<p>Here I fail to strike out an exclamation point~!~.</p> |
| 101 | +"##; |
| 102 | + |
| 103 | + test_markdown_html(original, expected, false, false, false); |
| 104 | +} |
| 105 | + |
| 106 | +#[test] |
| 107 | +fn strikethrough_test_11() { |
| 108 | + let original = r##"Here I fail to strike out a tilde ~~~. |
| 109 | +"##; |
| 110 | + let expected = r##"<p>Here I fail to strike out a tilde ~~~.</p> |
| 111 | +"##; |
| 112 | + |
| 113 | + test_markdown_html(original, expected, false, false, false); |
| 114 | +} |
| 115 | + |
| 116 | +#[test] |
| 117 | +fn strikethrough_test_12() { |
| 118 | + let original = r##"Here I fail to match up ~~tildes~. |
| 119 | +"##; |
| 120 | + let expected = r##"<p>Here I fail to match up ~~tildes~.</p> |
| 121 | +"##; |
| 122 | + |
| 123 | + test_markdown_html(original, expected, false, false, false); |
| 124 | +} |
| 125 | + |
| 126 | +#[test] |
| 127 | +fn strikethrough_test_13() { |
| 128 | + let original = r##"Here I fail to match up ~tildes~~. |
| 129 | +"##; |
| 130 | + let expected = r##"<p>Here I fail to match up ~tildes~~.</p> |
| 131 | +"##; |
| 132 | + |
| 133 | + test_markdown_html(original, expected, false, false, false); |
| 134 | +} |
| 135 | + |
| 136 | +#[test] |
| 137 | +fn strikethrough_test_14() { |
| 138 | + let original = r##"~~This ~is stricken.~~ |
| 139 | +"##; |
| 140 | + let expected = r##"<p><del>This ~is stricken.</del></p> |
| 141 | +"##; |
| 142 | + |
| 143 | + test_markdown_html(original, expected, false, false, false); |
| 144 | +} |
| 145 | + |
| 146 | +#[test] |
| 147 | +fn strikethrough_test_15() { |
| 148 | + let original = r##"~This ~~is stricken.~ |
| 149 | +"##; |
| 150 | + let expected = r##"<p><del>This ~~is stricken.</del></p> |
| 151 | +"##; |
| 152 | + |
| 153 | + test_markdown_html(original, expected, false, false, false); |
| 154 | +} |
| 155 | + |
| 156 | +#[test] |
| 157 | +fn strikethrough_test_16() { |
| 158 | + let original = r##"~This ~~is stricken~ but this is not~~ |
| 159 | +"##; |
| 160 | + let expected = r##"<p><del>This ~~is stricken</del> but this is not~~</p> |
| 161 | +"##; |
| 162 | + |
| 163 | + test_markdown_html(original, expected, false, false, false); |
| 164 | +} |
0 commit comments