This repository has been archived on 2026-08-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
donglora/vendor/pulldown-cmark/tests/suite/gfm_table.rs
T
swaitsandClaude Opus 4.6 3102fc747a feat: add display UI with splash screen, dashboard, and RSSI sparkline
Implement full SSD1306 OLED display support:
- Splash screen on boot (1.5s) with project name, version, board
- Dashboard showing radio state, config, counters, RSSI/SNR
- RSSI history sparkline (64-sample ring buffer, 2px-wide bars)
- DisplayOn/DisplayOff host commands routed via dedicated channel
- Pure render functions against generic DrawTarget (no hardware coupling)
- Display on/off control bypasses radio task entirely

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 20:42:54 -06:00

234 lines
3.1 KiB
Rust

// This file is auto-generated by the build script
// Please, do not modify it manually
use super::test_markdown_html;
#[test]
fn gfm_table_test_1() {
let original = r##"| foo | bar |
| --- | --- |
| baz | bim |
"##;
let expected = r##"<table>
<thead>
<tr>
<th>foo</th>
<th>bar</th>
</tr>
</thead>
<tbody>
<tr>
<td>baz</td>
<td>bim</td>
</tr>
</tbody>
</table>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_2() {
let original = r##"| abc | defghi |
:-: | -----------:
bar | baz
"##;
let expected = r##"<table>
<thead>
<tr>
<th style="text-align: center">abc</th>
<th style="text-align: right">defghi</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center">bar</td>
<td style="text-align: right">baz</td>
</tr>
</tbody>
</table>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_3() {
let original = r##"| f\|oo |
| ------ |
| b `\|` az |
| b **\|** im |
"##;
let expected = r##"<table>
<thead>
<tr>
<th>f|oo</th>
</tr>
</thead>
<tbody>
<tr>
<td>b <code>|</code> az</td>
</tr>
<tr>
<td>b <strong>|</strong> im</td>
</tr>
</tbody>
</table>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_4() {
let original = r##"| abc | def |
| --- | --- |
| bar | baz |
> bar
"##;
let expected = r##"<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody>
<tr>
<td>bar</td>
<td>baz</td>
</tr>
</tbody>
</table>
<blockquote>
<p>bar</p>
</blockquote>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_5() {
let original = r##"| abc | def |
| --- | --- |
| bar | baz |
bar
bar
"##;
let expected = r##"<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody>
<tr>
<td>bar</td>
<td>baz</td>
</tr>
<tr>
<td>bar</td>
<td></td>
</tr>
</tbody>
</table>
<p>bar</p>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_6() {
let original = r##"| abc | def |
| --- |
| bar |
"##;
let expected = r##"<p>| abc | def |
| --- |
| bar |</p>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_7() {
let original = r##"| abc | def |
| --- | --- |
| bar |
| bar | baz | boo |
"##;
let expected = r##"<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody>
<tr>
<td>bar</td>
<td></td>
</tr>
<tr>
<td>bar</td>
<td>baz</td>
</tr>
</tbody>
</table>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_8() {
let original = r##"| abc | def |
| --- | --- |
"##;
let expected = r##"<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody></tbody>
</table>
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn gfm_table_test_9() {
let original = r##"Hello World
| abc | def |
| --- | --- |
| bar | baz |
"##;
let expected = r##"<p>Hello World</p>
<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody>
<tr>
<td>bar</td>
<td>baz</td>
</tr>
</tbody>
</table>
"##;
test_markdown_html(original, expected, false, false, false);
}