// This file is auto-generated by the build script
// Please, do not modify it manually
use super::test_markdown_html;
#[test]
fn table_test_1() {
let original = r##"Test header
-----------
"##;
let expected = r##"
Test header
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_2() {
let original = r##"Test|Table
----|-----
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_3() {
let original = r##"> Test | Table
> ------|------
> Row 1 | Every
> Row 2 | Day
>
> Paragraph
"##;
let expected = r##"
Test | Table |
Row 1 | Every |
Row 2 | Day |
Paragraph
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_4() {
let original = r##" 1. First entry
2. Second entry
Col 1|Col 2
-|-
Row 1|Part 2
Row 2|Part 2
"##;
let expected = r##"
-
First entry
-
Second entry
Col 1 | Col 2 |
Row 1 | Part 2 |
Row 2 | Part 2 |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_5() {
let original = r##"|Col 1|Col 2|
|-----|-----|
|R1C1 |R1C2 |
|R2C1 |R2C2 |
"##;
let expected = r##"Col 1 | Col 2 |
R1C1 | R1C2 |
R2C1 | R2C2 |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_6() {
let original = r##"| Col 1 | Col 2 |
|-------|-------|
| | |
| | |
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_7() {
let original = r##"| Col 1 | Col 2 |
|-------|-------|
| x | |
| | x |
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_8() {
let original = r##"|Col 1|Col 2|
|-----|-----|
|✓ |✓ |
|✓ |✓ |
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_9() {
let original = r##"| Target | std |rustc|cargo| notes |
|-------------------------------|-----|-----|-----|----------------------------|
| `x86_64-unknown-linux-musl` | ✓ | | | 64-bit Linux with MUSL |
| `arm-linux-androideabi` | ✓ | | | ARM Android |
| `arm-unknown-linux-gnueabi` | ✓ | ✓ | | ARM Linux (2.6.18+) |
| `arm-unknown-linux-gnueabihf` | ✓ | ✓ | | ARM Linux (2.6.18+) |
| `aarch64-unknown-linux-gnu` | ✓ | | | ARM64 Linux (2.6.18+) |
| `mips-unknown-linux-gnu` | ✓ | | | MIPS Linux (2.6.18+) |
| `mipsel-unknown-linux-gnu` | ✓ | | | MIPS (LE) Linux (2.6.18+) |
"##;
let expected = r##"Target | std | rustc | cargo | notes |
x86_64-unknown-linux-musl | ✓ | | | 64-bit Linux with MUSL |
arm-linux-androideabi | ✓ | | | ARM Android |
arm-unknown-linux-gnueabi | ✓ | ✓ | | ARM Linux (2.6.18+) |
arm-unknown-linux-gnueabihf | ✓ | ✓ | | ARM Linux (2.6.18+) |
aarch64-unknown-linux-gnu | ✓ | | | ARM64 Linux (2.6.18+) |
mips-unknown-linux-gnu | ✓ | | | MIPS Linux (2.6.18+) |
mipsel-unknown-linux-gnu | ✓ | | | MIPS (LE) Linux (2.6.18+) |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_10() {
let original = r##"|-|-|
|ぃ|い|
"##;
let expected = r##"|-|-|
|ぃ|い|
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_11() {
let original = r##"|ぁ|ぃ|
|-|-|
|ぃ|ぃ|
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_12() {
let original = r##"|Колонка 1|Колонка 2|
|---------|---------|
|Ячейка 1 |Ячейка 2 |
"##;
let expected = r##"Колонка 1 | Колонка 2 |
Ячейка 1 | Ячейка 2 |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_13() {
let original = r##"table a
| a | b |
| --- | --- |
| c | d |
table b
| a | b |
| --- | --- |
| c | d |
table c
a | b
--- | ---
c | d
table d
a | b
--|--
c | d
table e
a | b
--|--
c | d
table f
| a | b |
| --- | --- |
| c | d |
table g
a | b
--- | ---
c | d
table h
a
|-|
b
table i
| a
|-
b
table j
| a
-
b
"##;
let expected = r##"table a
table b
| a | b |
| --- | --- |
| c | d |
table c
a | b
--- | ---
c | d
table d
a | b
--|--
c | d
table e
a | b
--|--
c | d
table f
table g
a | b
--- | ---
c | d
table h
a
|-|
b
table i
table j
| a
b
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_14() {
let original = r##"a | b
- | -
1 | 2
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_15() {
let original = r##"a | b\
- | -
1 | 2
"##;
let expected = r##"a | b\
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_16() {
let original = r##"a\
| b | c |
|---|---|
| d | e |
"##;
let expected = r##"a\
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_17() {
let original = r##"| Description | Test case |
|-------------|-----------|
| Single | `\` |
| Double | `\\` |
| Basic test | `\|` |
| Basic test 2| `\|\|\` |
| Basic test 3| `x\|y\|z\`|
| Not pipe | `\.` |
| Combo | `\.\|\` |
| Extra | `\\\.` |
| Wait, what? | `\\|` |
| Wait, what? | `\\\|` |
| Wait, what? | `\\\\|` |
| Wait, what? | `\\\\\|` |
| Wait, what? | \|
| Wait, what? | \\|
| Wait, what? | \\\|
| Wait, what?x| \|x
| Wait, what?x| \\|x
| Wait, what?x| \\\|x
| Direct trail| \.|x
"##;
let expected = r##"Description | Test case |
Single | \ |
Double | \\ |
Basic test | | |
Basic test 2 | ||\ |
Basic test 3 | x|y|z\ |
Not pipe | \. |
Combo | \.|\ |
Extra | \\\. |
Wait, what? | \| |
Wait, what? | \\| |
Wait, what? | \\\| |
Wait, what? | \\\\| |
Wait, what? | | |
Wait, what? | | |
Wait, what? | \| |
Wait, what?x | |x |
Wait, what?x | |x |
Wait, what?x | \|x |
Direct trail | . |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_18() {
let original = r##"| Single | `\|` |
|--|--|
| Single | `\|` |
| Double | `\\|` |
|--|--|
| Double | `\\|` |
| Double Twice | `\\|\\|` |
|--|--|
| Double Twice | `\\|\\|` |
| Triple | `\\\|` |
|--|--|
| Triple | `\\\|` |
"##;
let expected = r##"
Double Twice | \|\| |
Double Twice | \|\| |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_19() {
let original = r##"| Table | Header |
|-------|--------|
| Table | Body |
|
| Not | Enough |
| Table | Header |
|-------|--------|
| Table | Body |
|
| Not | Enough |
"##;
let expected = r##"
|
| Not | Enough |
|
| Not | Enough |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_20() {
let original = r##"| Table | Header |
|-------|--------|
|
"##;
let expected = r##"
|
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_21() {
let original = r##"|
|-------|--------|
| Table | Body |
"##;
let expected = r##"|
|-------|--------|
| Table | Body |
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_22() {
let original = r##"| Single | [test](first\|second) |
|--|--|
| Double | [test](first\\|second) |
|--|--|
| Triple | [test](first\\\|second) |
|--|--|
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_23() {
let original = r##"| Single | [first\|second] |
|--|--|
| Double | [first\\|second] |
|--|--|
| Triple | [first\\\|second] |
|--|--|
[first\|second]: https://rust-lang.org
[first\\|second]: https://docs.rs
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_24() {
let original = r##"Q: Knock knock.
A: Who's there.
Q: Interrupting cow.
A: Interrupting —?
| `Moo\\|ooo` |
|-------------|
| `ooo\\|ooo` |
"##;
let expected = r##"Q: Knock knock.
A: Who's there.
Q: Interrupting cow.
A: Interrupting —?
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_25() {
let original = r##"|  |
|-------------|
|  |
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_26() {
let original = r##"| [Moo](https://example.org "Example\\|Link") |
|---------------------------------------------|
| [Moo](https://example.org "Example\\\|Link") |
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_27() {
let original = r##"moo | moo
----|----
moo | moo
*
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn table_test_28() {
let original = r##"moo | moo
----|----
moo | moo
2.
"##;
let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false);
}