summaryrefslogtreecommitdiff
path: root/testx/create_test.go
blob: c9f292582158fef6a23d6355172616c88a34462e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//go:build test

package testx

import (
	"testing"
)

func TestAssertSourceIs_Correct(t *testing.T) {
	src := TSource("abc", "def")
	AssertSourceIs(t, "abc", src)
}

func TestAssertSourceIs_Wrong(t *testing.T) {
	src := TSource("abc", "def")
	AssertSourceIsNot(t, ";lkjh", src)
}

func TestAssertTargetIs_Correct(t *testing.T) {
	ta := TTarget("aaaa")
	AssertTargetIs(t, "aaaa", ta)
}

func TestAssertTargetIs_Wrong(t *testing.T) {
	ta := TTarget("aaaa")
	AssertTargetIsNot(t, "bbbbbb", ta)
}