diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 19:52:38 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 19:52:38 +0200 |
| commit | 94dceb4f7c1740de9215b36ec183f93ca4337ee7 (patch) | |
| tree | 5ad184efb0b74dd3aa4da7585f88a3e3f6cb4ecc /markdown/error_test.go | |
| parent | 8b249c9ce8bd1c351daf80c6c9b095fb1bccafe2 (diff) | |
style(markdown): fix typo in package name
Diffstat (limited to 'markdown/error_test.go')
| -rw-r--r-- | markdown/error_test.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/markdown/error_test.go b/markdown/error_test.go new file mode 100644 index 0000000..6f1ba01 --- /dev/null +++ b/markdown/error_test.go @@ -0,0 +1,26 @@ +package markdown + +import "testing" + +func TestError(t *testing.T) { + v, err := Parse("**bonsoir") + if err == nil { + t.Errorf("expected error, got %s", v) + } else { + t.Log(err.Pretty()) + } + + v, err = Parse("bo*nso**ir") + if err == nil { + t.Errorf("expected error, got %s", v) + } else { + t.Log(err.Pretty()) + } + + v, err = Parse("test ``` hehe") + if err == nil { + t.Errorf("expected error, got %s", v) + } else { + t.Log(err.Pretty()) + } +} |
