...
1 package filesystem
2
3 import (
4 _ "embed"
5
6 gk "github.com/onsi/ginkgo/v2"
7 gm "github.com/onsi/gomega"
8 )
9
10 var _ = gk.Describe("File system diff suite", func() {
11 gk.It("Files diff", func() {
12 isEqual, err := FilesEqual("testdata/file1.txt", "testdata/file2.txt")
13 gm.Expect(err).To(gm.BeNil())
14 gm.Expect(isEqual).To(gm.BeFalse())
15 })
16
17 gk.It("Files do not diff", func() {
18 isEqual, err := FilesEqual("testdata/file1.txt", "testdata/file3.txt")
19 gm.Expect(err).To(gm.BeNil())
20 gm.Expect(isEqual).To(gm.BeTrue())
21 })
22 })
23
View as plain text