From 08dc57d6134b81988f7e1aef37cd2d11305e7bc3 Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Sun, 4 Apr 2021 20:11:34 +0200 Subject: [PATCH] Move base in lib --- go/tests/Dockerfile | 1 - go/tests/func/atoibase_test/main.go | 2 +- go/tests/func/convertbase_test/main.go | 2 +- go/tests/func/printnbrbase_test/main.go | 2 +- go/tests/{ => lib}/base/base.go | 0 5 files changed, 3 insertions(+), 4 deletions(-) rename go/tests/{ => lib}/base/base.go (100%) diff --git a/go/tests/Dockerfile b/go/tests/Dockerfile index 6d1fd0a90..9c03b5fbb 100644 --- a/go/tests/Dockerfile +++ b/go/tests/Dockerfile @@ -11,7 +11,6 @@ RUN touch /piscine-go/go.mod WORKDIR /public/go/tests COPY go.* ./ RUN go mod download -COPY base base COPY func func COPY lib lib COPY prog prog diff --git a/go/tests/func/atoibase_test/main.go b/go/tests/func/atoibase_test/main.go index e812b3cc1..afbd5c7d6 100644 --- a/go/tests/func/atoibase_test/main.go +++ b/go/tests/func/atoibase_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "github.com/01-edu/public/go/tests/base" "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/base" ) func main() { diff --git a/go/tests/func/convertbase_test/main.go b/go/tests/func/convertbase_test/main.go index 9acd06596..70086cabc 100644 --- a/go/tests/func/convertbase_test/main.go +++ b/go/tests/func/convertbase_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "github.com/01-edu/public/go/tests/base" "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/base" ) func convertNbrBase(n int, base string) string { diff --git a/go/tests/func/printnbrbase_test/main.go b/go/tests/func/printnbrbase_test/main.go index b89d4984d..5e13db0da 100644 --- a/go/tests/func/printnbrbase_test/main.go +++ b/go/tests/func/printnbrbase_test/main.go @@ -5,8 +5,8 @@ import ( student "student" - "github.com/01-edu/public/go/tests/base" "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/base" ) func printNbrBase(n int, b string) { diff --git a/go/tests/base/base.go b/go/tests/lib/base/base.go similarity index 100% rename from go/tests/base/base.go rename to go/tests/lib/base/base.go