~chrisppy/go-barefeed

ref: 022d6ea6f0215c28fa4b4b69dd9d821c8766ded8 go-barefeed/text_test.go -rw-r--r-- 399 bytes
022d6ea6Chris Palmer updates from barefeed fixes 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package barefeed

import (
	"testing"
)

func testText(t *testing.T, expected, actual Text) {
	if expected.Type != actual.Type {
		t.Errorf("Expected %s, actual %s", expected.Type, actual.Type)
	}
	if expected.Value != actual.Value {
		t.Errorf("Expected %s, actual %s", expected.Value, actual.Value)
	}
}

func getText() Text {
	return Text{
		Type:  "html",
		Value: "<p>This is a test</p>",
	}
}