Fix table tests

main
kirbylife 2024-07-31 00:20:17 -06:00
parent f427ab127f
commit 122f9d120b
1 changed files with 6 additions and 2 deletions

View File

@ -381,6 +381,7 @@ fn test_single_table() {
| veinte | 20 |
"#;
let gemtext = r#"
```
+----------+-------+
| Column 1 | Col 2 |
+==================+
@ -388,6 +389,7 @@ fn test_single_table() {
|----------+-------|
| veinte | 20 |
+----------+-------+
```
"#;
assert_eq!(convert(markdown).trim(), gemtext.trim());
}
@ -407,6 +409,7 @@ fn test_multi_tables() {
| 50 | 60 |
"#;
let gemtext = r#"
```
+----------+-------+
| Column 1 | Col 2 |
+==================+
@ -414,9 +417,9 @@ fn test_multi_tables() {
|----------+-------|
| veinte | 20 |
+----------+-------+
```
```
+----------+-------+
| Column 1 | Col 2 |
+==================+
@ -424,6 +427,7 @@ fn test_multi_tables() {
|----------+-------|
| 50 | 60 |
+----------+-------+
```
"#;
assert_eq!(convert(markdown).trim(), gemtext.trim());
}