ui_test.gno
0.52 Kb ยท 13 lines
1package ui
2
3import (
4 "testing"
5
6 "gno.land/p/demo/uassert"
7)
8
9func TestRender(t *testing.T) {
10 got := Render("")
11 expected := "# UI Demo\n\n[foo](r/demo/ui:foo) / [bar](r/demo/ui:foo/bar)\n\n\nSimple UI demonstration.\n\n- a text\n- [a relative link](r/demo/ui:foobar)\n- another text\n- **a bold text**\n- _italic text_\n- raw markdown with **bold** text in the middle.\n- `some inline code`\n- [a remote link](https://gno.land)\n\nanother string.\n\na paragraph.\n\n\n---\n\n\nI'm the footer.\n\n"
12 uassert.Equal(t, expected, got)
13}