File: ial_test.go

package info (click to toggle)
golang-github-miekg-mmark 1.3.4%2Bgit20161103.9.2d4f1dd%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 636 kB
  • ctags: 635
  • sloc: makefile: 33
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)
}