File: ial_test.go

package info (click to toggle)
golang-github-miekg-mmark 1.3.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 616 kB
  • sloc: makefile: 35
file content (15 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package mmark

import "testing"

func TestIALSyntax(t *testing.T) {
	tests := []string{
		"{.class key=\"value\"}\n> Quote\n",
		"<blockquote class=\"class\" key=\"value\">\n<p>Quote</p>\n</blockquote>\n",

		"{.class key=\"va\\}lue\"}\n> Quote\n",
		"<blockquote class=\"class\" key=\"va\\}lue\">\n<p>Quote</p>\n</blockquote>\n",
	}

	doTestsBlock(t, tests, 0)
}