MCPcopy Create free account
hub / github.com/eth-easl/dirigent / TestDifference

Function TestDifference

pkg/map/maps_test.go:48–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestDifference(t *testing.T) {
49 slice1 := []int{1, 2, 3, 4}
50 slice2 := []int{4, 2}
51
52 output := Difference(slice1, slice2)
53 assert.Len(t, output, 2)
54 assert.Equal(t, output[0], slice1[0])
55 assert.Equal(t, output[1], slice1[2])
56}
57
58func TestDifferenceSecond(t *testing.T) {
59 s1 := []string{"a", "b", "c"}

Callers

nothing calls this directly

Calls 2

DifferenceFunction · 0.85
LenMethod · 0.65

Tested by

no test coverage detected