summaryrefslogtreecommitdiff
path: root/build/instructions_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/instructions_test.go')
-rw-r--r--build/instructions_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/instructions_test.go b/build/instructions_test.go
index 77938dd..561bf80 100644
--- a/build/instructions_test.go
+++ b/build/instructions_test.go
@@ -33,7 +33,7 @@ func TestRunAll(t *testing.T) {
func TestCopy(t *testing.T) {
i := build.Copy{[]string{"source1", "source2"}, "dest"}
- assert.Equal(t, []string{`"source1"`, `"source2"`, `"dest"`}, i.Compile())
+ assert.Equal(t, []string{`"source1"`, `"source2"`, `"dest/"`}, i.Compile())
}
func TestCopyAs(t *testing.T) {
@@ -44,7 +44,7 @@ func TestCopyAs(t *testing.T) {
build.Copy{[]string{"source1", "source2"}, "dest"},
}
- assert.Equal(t, []string{"123:124", `"source1"`, `"source2"`, `"dest"`}, i.Compile())
+ assert.Equal(t, []string{"123:124", `"source1"`, `"source2"`, `"dest/"`}, i.Compile())
})
t.Run("wrapping CopyFrom", func(t *testing.T) {
@@ -54,14 +54,14 @@ func TestCopyAs(t *testing.T) {
build.CopyFrom{"foo", build.Copy{[]string{"source1", "source2"}, "dest"}},
}
- assert.Equal(t, []string{"123:124", "foo", `"source1"`, `"source2"`, `"dest"`}, i.Compile())
+ assert.Equal(t, []string{"123:124", "foo", `"source1"`, `"source2"`, `"dest/"`}, i.Compile())
})
}
func TestCopyFrom(t *testing.T) {
i := build.CopyFrom{"foo", build.Copy{[]string{"source1", "source2"}, "dest"}}
- assert.Equal(t, []string{"foo", `"source1"`, `"source2"`, `"dest"`}, i.Compile())
+ assert.Equal(t, []string{"foo", `"source1"`, `"source2"`, `"dest/"`}, i.Compile())
}
func TestEntryPoint(t *testing.T) {