32 lines
945 B
C#
32 lines
945 B
C#
using MfGames.Markdown.Gemtext;
|
|
using Xunit;
|
|
|
|
namespace MfGames.Markdown.Gemini.Tests
|
|
{
|
|
public class TableTests
|
|
{
|
|
[Fact(Skip = "Tables are out of scope at this point")]
|
|
public void SimpleImageLink()
|
|
{
|
|
string input = string.Join(
|
|
"\n",
|
|
"a|b|c",
|
|
"-|-|",
|
|
"1|2|3",
|
|
"4|5|6");
|
|
string expected = string.Join(
|
|
"\n",
|
|
"┌───┬───┬───┐",
|
|
"│ a │ b │ c │",
|
|
"╞═══╪═══╪═══╡",
|
|
"│ 1 │ 2 │ 3 │",
|
|
"├───┼───┼───┤",
|
|
"│ 4 │ 5 │ 6 │",
|
|
"└───┴───┴───┘");
|
|
string actual = MarkdownGemtext.ToGemtext(input);
|
|
|
|
Assert.Equal(expected, actual);
|
|
}
|
|
}
|
|
}
|