func TestOrderedSequencesSubsetMap(t *testing.T) {
	v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest*2, 1)
	v2 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 1)
	tm1 := newDiffTestSuiteMap(v1, v2, 0, lengthOfNumbersTest/2, 0)
	tm2 := newDiffTestSuiteMap(v2, v1, lengthOfNumbersTest/2, 0, 0)
	suite.Run(t, tm1)
	suite.Run(t, tm2)
	tm1.Equal(tm1.added, tm2.removed, "added and removed in reverse order diff")
	tm1.Equal(tm1.removed, tm2.added, "removed and added in reverse order diff")
}
func TestOrderedSequencesDisjointSet(t *testing.T) {
	v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 2)
	v2 := generateNumbersAsValuesFromToBy(1, lengthOfNumbersTest, 2)
	ts1 := newDiffTestSuiteSet(v1, v2, lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0)
	ts2 := newDiffTestSuiteSet(v2, v1, lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0)
	suite.Run(t, ts1)
	suite.Run(t, ts2)

	ts1.Equal(ts1.added, ts2.removed, "added and removed in disjoint diff")
	ts1.Equal(ts1.removed, ts2.added, "removed and added in disjoint diff")
}
func TestOrderedSequencesDisjoint(t *testing.T) {
	ts1 := newDiffTestSuite(
		0, lengthOfNumbersTest, 2,
		1, lengthOfNumbersTest, 2,
		lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0)
	ts2 := newDiffTestSuite(
		1, lengthOfNumbersTest, 2,
		0, lengthOfNumbersTest, 2,
		lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0)
	suite.Run(t, ts1)
	suite.Run(t, ts2)
	ts1.Equal(ts1.added, ts2.removed, "added and removed in disjoint diff")
	ts1.Equal(ts1.removed, ts2.added, "removed and added in disjoint diff")
}
func TestOrderedSequencesSubset(t *testing.T) {
	ts1 := newDiffTestSuite(
		0, lengthOfNumbersTest, 1,
		0, lengthOfNumbersTest/2, 1,
		0, lengthOfNumbersTest/2, 0)
	ts2 := newDiffTestSuite(
		0, lengthOfNumbersTest/2, 1,
		0, lengthOfNumbersTest, 1,
		lengthOfNumbersTest/2, 0, 0)
	suite.Run(t, ts1)
	suite.Run(t, ts2)
	ts1.Equal(ts1.added, ts2.removed, "added and removed in reverse order diff")
	ts1.Equal(ts1.removed, ts2.added, "removed and added in reverse order diff")
}
func TestOrderedSequencesIdentical(t *testing.T) {
	ts := newDiffTestSuite(
		0, lengthOfNumbersTest, 1,
		0, lengthOfNumbersTest, 1,
		0, 0, 0)
	suite.Run(t, ts)
}
Пример #6
0
func TestLibTestSuite(t *testing.T) {
	suite.Run(t, &LibTestSuite{})
}
Пример #7
0
func TestBasics(t *testing.T) {
	suite.Run(t, &testSuite{})
}
// Called from "go test"
func TestOrderedSequencesIdenticalSet(t *testing.T) {
	v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 1)
	v2 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 1)
	ts := newDiffTestSuiteSet(v1, v2, 0, 0, 0)
	suite.Run(t, ts)
}
Пример #9
0
func TestOpCache(t *testing.T) {
	suite.Run(t, &OpCacheSuite{})
}
Пример #10
0
func TestParserTestSuite(t *testing.T) {
	suite.Run(t, &ParserTestSuite{})
	suite.Run(t, &ParsedResultTestSuite{})
}
Пример #11
0
func TestListSuite4K(t *testing.T) {
	suite.Run(t, newListTestSuite(12, "8h3s3pjmp2ihbr7270iqe446ij3bfmqr", 2, 2, 2))
}
Пример #12
0
func TestSetSuite4K(t *testing.T) {
	suite.Run(t, newSetTestSuite(12, "8i0nfi4vf4ilp6g5bb4uhlqpbie0rbrh", 2, 2, 2, newNumber))
}
Пример #13
0
func TestSetSuite1K(t *testing.T) {
	suite.Run(t, newSetTestSuite(10, "n99i86gc4s23ol7ctmjuc1p4jk4msr4i", 0, 0, 0, newNumber))
}
Пример #14
0
func TestSync(t *testing.T) {
	suite.Run(t, &testSuite{})
}
Пример #15
0
func TestDir(t *testing.T) {
	suite.Run(t, &fuseTestSuite{})
}
Пример #16
0
func TestNomsShow(t *testing.T) {
	util.UtilExiter = testExiter{}
	suite.Run(t, &nomsShowTestSuite{})
}
Пример #17
0
func TestListSuite1K(t *testing.T) {
	suite.Run(t, newListTestSuite(10, "1md2squldk4fo7sg179pbqvdd6a3aa4p", 0, 0, 0))
}
Пример #18
0
func TestSetSuite1KStructs(t *testing.T) {
	suite.Run(t, newSetTestSuite(10, "901lc62988o1epbj29811f5f0u06ep8g", 0, 0, 0, newNumberStruct))
}
Пример #19
0
func TestListSuite8K(t *testing.T) {
	suite.Run(t, newListTestSuite(14, "v936b655mg56lb9jh7951ielec80et15", 5, 2, 2))
}
Пример #20
0
func TestSetSuite4KStructs(t *testing.T) {
	suite.Run(t, newSetTestSuite(12, "410of8pb7ib5rms4b611490brueqcc7c", 4, 2, 2, newNumberStruct))
}
Пример #21
0
func TestCSVExporter(t *testing.T) {
	suite.Run(t, &testSuite{})
}
Пример #22
0
func TestBlobSuite4K(t *testing.T) {
	suite.Run(t, newBlobTestSuite(12, "sha1-fc4c95f8f9db7c60d17bfc3366373e44168b6903", 9, 2, 2))
}
Пример #23
0
func TestSerialRunnerTestSuite(t *testing.T) {
	suite.Run(t, &SerialRunnerTestSuite{})
}
Пример #24
0
func TestBlobSuite16K(t *testing.T) {
	suite.Run(t, newBlobTestSuite(14, "sha1-43cc3d646647cb63dfe3c13ea6e352fecc597379", 2, 2, 2))
}
func TestOrderedSequencesIdenticalMap(t *testing.T) {
	v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest*2, 1)
	v2 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest*2, 1)
	tm := newDiffTestSuiteMap(v1, v2, 0, 0, 0)
	suite.Run(t, tm)
}
Пример #26
0
func TestBlobSuite64K(t *testing.T) {
	suite.Run(t, newBlobTestSuite(16, "sha1-5af76c7ea2a964ff7355418c3ec38504ee6cbd9e", 3, 2, 2))
}
Пример #27
0
func TestBlobSuite256K(t *testing.T) {
	if testing.Short() {
		t.Skip("Skipping test in short mode.")
	}
	suite.Run(t, newBlobTestSuite(18, "sha1-2fe75543395ab5f54d0586b88f79d44ebc41490d", 8, 2, 2))
}
Пример #28
0
func TestBlobSuite1K(t *testing.T) {
	suite.Run(t, newBlobTestSuite(10, "sha1-ccf0161935f285d1d80cbcab8fd4c092fbf1f63b", 3, 2, 2))
}
Пример #29
0
func TestWalkTestSuite(t *testing.T) {
	suite.Run(t, &WalkAllTestSuite{})
	suite.Run(t, &WalkTestSuite{})
}
Пример #30
0
func TestMapSuite4KStructs(t *testing.T) {
	suite.Run(t, newMapTestSuite(12, "q2kgo4jonhgfeoblvlovh2eo7kqjel54", 7, 2, 2, newNumberStruct))
}