diff --git a/go/tests/Dockerfile b/go/tests/Dockerfile index 2c8cd15b..f7165937 100644 --- a/go/tests/Dockerfile +++ b/go/tests/Dockerfile @@ -1,12 +1,22 @@ -FROM golang:1.14.6-alpine3.12 +FROM docker.01-edu.org/golang:1.16.0-alpine3.13 ENV GIT_TERMINAL_PROMPT=0 RUN apk add --no-cache git + RUN go get golang.org/x/tools/cmd/goimports -RUN go get github.com/01-edu/z01 -COPY . src -RUN go get rc -RUN go install rc prog/... + +RUN mkdir -p /jail/student +RUN touch /jail/student/go.mod + +WORKDIR /public/go/tests +COPY go.* ./ +RUN go mod download +COPY base base +COPY func func +COPY lib lib +COPY prog prog +COPY rc rc +RUN go install ./rc ./prog/... COPY entrypoint.sh /usr/local/bin ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] diff --git a/go/tests/base/base.go b/go/tests/base/base.go index 04024992..8f175e65 100644 --- a/go/tests/base/base.go +++ b/go/tests/base/base.go @@ -4,7 +4,7 @@ import ( "math/rand" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func uniqueChar(s string) bool { diff --git a/go/tests/entrypoint.sh b/go/tests/entrypoint.sh index 550ff053..de04a149 100755 --- a/go/tests/entrypoint.sh +++ b/go/tests/entrypoint.sh @@ -2,15 +2,20 @@ set -e +cd student + +if test "$EXAM_MODE"; then + go mod init main 2>/dev/null + GOSUMDB=off go get github.com/01-edu/z01@v0.1.0 2>/dev/null +fi + if test "$EXAM_RUN_ONLY" = true; then - go build -o exe ./student + go build -o exe "./$EXERCISE" ./exe "$@" exit fi -cd student - -if ! test "$SKIP_FORMATTING"; then +if ! test "$EXAM_MODE"; then s=$(goimports -d .) if test "$s"; then echo 'Your Go files are not correctly formatted :' @@ -37,18 +42,13 @@ if test "$ALLOWED_FUNCTIONS" && test "$FILE"; then rc "$FILE" $ALLOWED_FUNCTIONS fi -cd - # Compile and run test if command -v "${EXERCISE}_test" >/dev/null 2>&1; then # The exercise is a program - go build -o exe "./student/$EXERCISE" + go build -o exe "./$EXERCISE" "${EXERCISE}_test" else # The exercise is a function - mkdir src - ln -s $(pwd)/student $(pwd)/src/student - GOPATH=$GOPATH:$PWD - go build "func/${EXERCISE}_test" - "./${EXERCISE}_test" + cd "/public/go/tests/func/${EXERCISE}_test" + go run . fi diff --git a/go/tests/func/abort_test/main.go b/go/tests/func/abort_test/main.go index c901a5d6..591ad0cf 100644 --- a/go/tests/func/abort_test/main.go +++ b/go/tests/func/abort_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) // Receives 5 ints and returns the number in the middle diff --git a/go/tests/func/activebits_test/main.go b/go/tests/func/activebits_test/main.go index 19f56304..ab5d1fe4 100644 --- a/go/tests/func/activebits_test/main.go +++ b/go/tests/func/activebits_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) // Function that return the number of active bits in the number passed as the argument diff --git a/go/tests/func/advancedsortwordarr_test/main.go b/go/tests/func/advancedsortwordarr_test/main.go index c8e7201a..71d9f3cd 100644 --- a/go/tests/func/advancedsortwordarr_test/main.go +++ b/go/tests/func/advancedsortwordarr_test/main.go @@ -7,7 +7,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func advancedSortWordArr(a []string, f func(a, b string) int) { diff --git a/go/tests/func/alphacount_test/main.go b/go/tests/func/alphacount_test/main.go index 2f951173..c6bba28d 100644 --- a/go/tests/func/alphacount_test/main.go +++ b/go/tests/func/alphacount_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func alphaCount(s string) (i int) { diff --git a/go/tests/func/any_test/main.go b/go/tests/func/any_test/main.go index e90772ec..2840290e 100644 --- a/go/tests/func/any_test/main.go +++ b/go/tests/func/any_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func any(f func(string) bool, a []string) bool { diff --git a/go/tests/func/appendrange_test/main.go b/go/tests/func/appendrange_test/main.go index 97acb73f..e0a99e26 100644 --- a/go/tests/func/appendrange_test/main.go +++ b/go/tests/func/appendrange_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func appendRange(min, max int) []int { diff --git a/go/tests/func/atoi_test/main.go b/go/tests/func/atoi_test/main.go index 6e3d6127..16730560 100644 --- a/go/tests/func/atoi_test/main.go +++ b/go/tests/func/atoi_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func atoi(s string) int { diff --git a/go/tests/func/atoibase_test/main.go b/go/tests/func/atoibase_test/main.go index 99fd8a98..e812b3cc 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" - "base" - "lib" + "github.com/01-edu/public/go/tests/base" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/basicatoi2_test/main.go b/go/tests/func/basicatoi2_test/main.go index 3263c760..47a5ab79 100644 --- a/go/tests/func/basicatoi2_test/main.go +++ b/go/tests/func/basicatoi2_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func basicAtoi2(s string) int { diff --git a/go/tests/func/basicatoi_test/main.go b/go/tests/func/basicatoi_test/main.go index 61a40280..5d2dd4e9 100644 --- a/go/tests/func/basicatoi_test/main.go +++ b/go/tests/func/basicatoi_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func basicAtoi(s string) int { diff --git a/go/tests/func/basicjoin_test/main.go b/go/tests/func/basicjoin_test/main.go index 82e15c35..f860ef60 100644 --- a/go/tests/func/basicjoin_test/main.go +++ b/go/tests/func/basicjoin_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func basicJoin(elems []string) string { diff --git a/go/tests/func/btreeapplybylevel_test/main.go b/go/tests/func/btreeapplybylevel_test/main.go index 98d826b3..029314c6 100644 --- a/go/tests/func/btreeapplybylevel_test/main.go +++ b/go/tests/func/btreeapplybylevel_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" ) func main() { diff --git a/go/tests/func/btreeapplyinorder_test/main.go b/go/tests/func/btreeapplyinorder_test/main.go index 1b9e5430..b464d506 100644 --- a/go/tests/func/btreeapplyinorder_test/main.go +++ b/go/tests/func/btreeapplyinorder_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" ) func main() { diff --git a/go/tests/func/btreeapplypostorder_test/main.go b/go/tests/func/btreeapplypostorder_test/main.go index e1438ab6..48a3e0f6 100644 --- a/go/tests/func/btreeapplypostorder_test/main.go +++ b/go/tests/func/btreeapplypostorder_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" ) func main() { diff --git a/go/tests/func/btreeapplypreorder_test/main.go b/go/tests/func/btreeapplypreorder_test/main.go index a318e53b..85cbc127 100644 --- a/go/tests/func/btreeapplypreorder_test/main.go +++ b/go/tests/func/btreeapplypreorder_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" ) func main() { diff --git a/go/tests/func/btreedeletenode_test/main.go b/go/tests/func/btreedeletenode_test/main.go index a1241fb3..c6ae7de3 100644 --- a/go/tests/func/btreedeletenode_test/main.go +++ b/go/tests/func/btreedeletenode_test/main.go @@ -3,9 +3,9 @@ package main import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func parentListDelete(root *student.TreeNode) string { diff --git a/go/tests/func/btreeinsertdata_test/main.go b/go/tests/func/btreeinsertdata_test/main.go index 90b57f0a..dd8264a3 100644 --- a/go/tests/func/btreeinsertdata_test/main.go +++ b/go/tests/func/btreeinsertdata_test/main.go @@ -3,9 +3,9 @@ package main import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func parentListInsert(root *student.TreeNode) string { diff --git a/go/tests/func/btreeisbinary_test/main.go b/go/tests/func/btreeisbinary_test/main.go index 4241ce69..71345bb5 100644 --- a/go/tests/func/btreeisbinary_test/main.go +++ b/go/tests/func/btreeisbinary_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func BTreeMinStu(root *student.TreeNode) *student.TreeNode { diff --git a/go/tests/func/btreelevelcount_test/main.go b/go/tests/func/btreelevelcount_test/main.go index 3b7c839f..56649109 100644 --- a/go/tests/func/btreelevelcount_test/main.go +++ b/go/tests/func/btreelevelcount_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func errorMessage_level(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) { diff --git a/go/tests/func/btreemax_test/main.go b/go/tests/func/btreemax_test/main.go index e39290ee..eb0ca3a4 100644 --- a/go/tests/func/btreemax_test/main.go +++ b/go/tests/func/btreemax_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func errorMessage_max(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) { diff --git a/go/tests/func/btreemin_test/main.go b/go/tests/func/btreemin_test/main.go index 9ff7c0d3..741570af 100644 --- a/go/tests/func/btreemin_test/main.go +++ b/go/tests/func/btreemin_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func errorMessage_min(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) { diff --git a/go/tests/func/btreesearchitem_test/main.go b/go/tests/func/btreesearchitem_test/main.go index aad8ae02..b829d0df 100644 --- a/go/tests/func/btreesearchitem_test/main.go +++ b/go/tests/func/btreesearchitem_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func errorMessage_search(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode, diff --git a/go/tests/func/btreetransplant_test/main.go b/go/tests/func/btreetransplant_test/main.go index 474d2e21..fcdbf714 100644 --- a/go/tests/func/btreetransplant_test/main.go +++ b/go/tests/func/btreetransplant_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func parentListTransp(root *student.TreeNode) string { diff --git a/go/tests/func/capitalize_test/main.go b/go/tests/func/capitalize_test/main.go index bcc4b4a0..56235488 100644 --- a/go/tests/func/capitalize_test/main.go +++ b/go/tests/func/capitalize_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func capitalize(s string) string { diff --git a/go/tests/func/chunk_test/main.go b/go/tests/func/chunk_test/main.go index a9e4cf3d..b6480dd7 100644 --- a/go/tests/func/chunk_test/main.go +++ b/go/tests/func/chunk_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func chunk(a []int, ch int) { diff --git a/go/tests/func/collatzcountdown_test/main.go b/go/tests/func/collatzcountdown_test/main.go index 37d56b0b..09e1394c 100644 --- a/go/tests/func/collatzcountdown_test/main.go +++ b/go/tests/func/collatzcountdown_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func collatzCountdown(start int) int { diff --git a/go/tests/func/compact_test/main.go b/go/tests/func/compact_test/main.go index 4f4b35c0..6386a716 100644 --- a/go/tests/func/compact_test/main.go +++ b/go/tests/func/compact_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func compact(slice *[]string) int { diff --git a/go/tests/func/compare_test/main.go b/go/tests/func/compare_test/main.go index 6a008639..ce43d8b0 100644 --- a/go/tests/func/compare_test/main.go +++ b/go/tests/func/compare_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/concat_test/main.go b/go/tests/func/concat_test/main.go index 9462cb63..55fd8fab 100644 --- a/go/tests/func/concat_test/main.go +++ b/go/tests/func/concat_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/concatparams_test/main.go b/go/tests/func/concatparams_test/main.go index 65179a37..596852d0 100644 --- a/go/tests/func/concatparams_test/main.go +++ b/go/tests/func/concatparams_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func concatParams(args []string) string { diff --git a/go/tests/func/convertbase_test/main.go b/go/tests/func/convertbase_test/main.go index 99f63b8f..e6e86689 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" - "base" - "lib" + "github.com/01-edu/public/go/tests/base" + "github.com/01-edu/public/go/tests/lib" ) func convertNbrBase(n int, base string) string { diff --git a/go/tests/func/correct/challenge.go b/go/tests/func/correct/challenge.go index a74003c7..20203709 100644 --- a/go/tests/func/correct/challenge.go +++ b/go/tests/func/correct/challenge.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func FormatTree(root *TreeNode) string { diff --git a/go/tests/func/countif_test/main.go b/go/tests/func/countif_test/main.go index c4fd6bc3..47a6408b 100644 --- a/go/tests/func/countif_test/main.go +++ b/go/tests/func/countif_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func countIf(f func(string) bool, a []string) int { diff --git a/go/tests/func/divmod_test/main.go b/go/tests/func/divmod_test/main.go index 2289bdbf..c9f3cc4e 100644 --- a/go/tests/func/divmod_test/main.go +++ b/go/tests/func/divmod_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/doppelganger_test/main.go b/go/tests/func/doppelganger_test/main.go index a5f75016..72410b39 100644 --- a/go/tests/func/doppelganger_test/main.go +++ b/go/tests/func/doppelganger_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type node struct { diff --git a/go/tests/func/eightqueens_test/main.go b/go/tests/func/eightqueens_test/main.go index e2b8fb22..c5437832 100644 --- a/go/tests/func/eightqueens_test/main.go +++ b/go/tests/func/eightqueens_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) const size = 8 diff --git a/go/tests/func/enigma_test/main.go b/go/tests/func/enigma_test/main.go index 279fdf7a..a0fb0455 100644 --- a/go/tests/func/enigma_test/main.go +++ b/go/tests/func/enigma_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) // Helper function used in the test for checking the function Enigma() diff --git a/go/tests/func/fib_test/main.go b/go/tests/func/fib_test/main.go index 2b0643f3..f75e9ff4 100644 --- a/go/tests/func/fib_test/main.go +++ b/go/tests/func/fib_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func fib(n int) int { diff --git a/go/tests/func/fibonacci_test/main.go b/go/tests/func/fibonacci_test/main.go index 8257a1c7..7ea7977d 100644 --- a/go/tests/func/fibonacci_test/main.go +++ b/go/tests/func/fibonacci_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func fibonacci(i int) int { diff --git a/go/tests/func/findnextprime_test/main.go b/go/tests/func/findnextprime_test/main.go index 315309a1..593a9b2a 100644 --- a/go/tests/func/findnextprime_test/main.go +++ b/go/tests/func/findnextprime_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func findNextPrime(nb int) int { diff --git a/go/tests/func/findprevprime_test/main.go b/go/tests/func/findprevprime_test/main.go index 82adaf31..33565452 100644 --- a/go/tests/func/findprevprime_test/main.go +++ b/go/tests/func/findprevprime_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func findPrevPrime(nb int) int { diff --git a/go/tests/func/firstrune_test/main.go b/go/tests/func/firstrune_test/main.go index e24a1fea..a0886062 100644 --- a/go/tests/func/firstrune_test/main.go +++ b/go/tests/func/firstrune_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func firstRune(s string) rune { diff --git a/go/tests/func/foldint_test/main.go b/go/tests/func/foldint_test/main.go index 55230b5d..73914453 100644 --- a/go/tests/func/foldint_test/main.go +++ b/go/tests/func/foldint_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func foldInt(f func(int, int) int, a []int, n int) { diff --git a/go/tests/func/foreach_test/main.go b/go/tests/func/foreach_test/main.go index f2993ccb..56906399 100644 --- a/go/tests/func/foreach_test/main.go +++ b/go/tests/func/foreach_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func forEach(f func(int), a []int) { diff --git a/go/tests/func/game23_test/main.go b/go/tests/func/game23_test/main.go index dc7d73b9..64b163ea 100644 --- a/go/tests/func/game23_test/main.go +++ b/go/tests/func/game23_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func game23(a, b int) int { diff --git a/go/tests/func/halfcontest_test/main.go b/go/tests/func/halfcontest_test/main.go index e4edfa5d..47b4a79a 100644 --- a/go/tests/func/halfcontest_test/main.go +++ b/go/tests/func/halfcontest_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func halfContest(h1, m1, h2, m2 int) int { diff --git a/go/tests/func/index_test/main.go b/go/tests/func/index_test/main.go index cb5982eb..e10a489b 100644 --- a/go/tests/func/index_test/main.go +++ b/go/tests/func/index_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func index(s string, substr string) int { diff --git a/go/tests/func/interestingnumber_test/main.go b/go/tests/func/interestingnumber_test/main.go index f0cbaf40..6f6e694a 100644 --- a/go/tests/func/interestingnumber_test/main.go +++ b/go/tests/func/interestingnumber_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func isInteresting(n int) bool { diff --git a/go/tests/func/isalpha_test/main.go b/go/tests/func/isalpha_test/main.go index 7a90887b..f30a77ea 100644 --- a/go/tests/func/isalpha_test/main.go +++ b/go/tests/func/isalpha_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func isAlpha(s string) bool { diff --git a/go/tests/func/isanagram_test/main.go b/go/tests/func/isanagram_test/main.go index dd812372..0071763d 100644 --- a/go/tests/func/isanagram_test/main.go +++ b/go/tests/func/isanagram_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func isAnagram(s, t string) bool { diff --git a/go/tests/func/islower_test/main.go b/go/tests/func/islower_test/main.go index 3171ad73..a59d9d4c 100644 --- a/go/tests/func/islower_test/main.go +++ b/go/tests/func/islower_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func main() { diff --git a/go/tests/func/isnegative_test/main.go b/go/tests/func/isnegative_test/main.go index fb2cfe1d..a12cd2ba 100644 --- a/go/tests/func/isnegative_test/main.go +++ b/go/tests/func/isnegative_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func isNegative(n int) { diff --git a/go/tests/func/isnumeric_test/main.go b/go/tests/func/isnumeric_test/main.go index 1317dc2a..5ee25316 100644 --- a/go/tests/func/isnumeric_test/main.go +++ b/go/tests/func/isnumeric_test/main.go @@ -5,8 +5,8 @@ import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func main() { diff --git a/go/tests/func/isprime_test/main.go b/go/tests/func/isprime_test/main.go index 3b8a4ec3..5a114d3f 100644 --- a/go/tests/func/isprime_test/main.go +++ b/go/tests/func/isprime_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func main() { diff --git a/go/tests/func/isprintable_test/main.go b/go/tests/func/isprintable_test/main.go index 192e031e..2a2f4833 100644 --- a/go/tests/func/isprintable_test/main.go +++ b/go/tests/func/isprintable_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func isPrintable(s string) bool { diff --git a/go/tests/func/issorted_test/main.go b/go/tests/func/issorted_test/main.go index ba82a08a..cfdfdffb 100644 --- a/go/tests/func/issorted_test/main.go +++ b/go/tests/func/issorted_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func isSorted(f func(int, int) int, a []int) bool { diff --git a/go/tests/func/isupper_test/main.go b/go/tests/func/isupper_test/main.go index a49657c5..b083116a 100644 --- a/go/tests/func/isupper_test/main.go +++ b/go/tests/func/isupper_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func main() { diff --git a/go/tests/func/iterativefactorial_test/main.go b/go/tests/func/iterativefactorial_test/main.go index 62a58d3f..aa7da1bd 100644 --- a/go/tests/func/iterativefactorial_test/main.go +++ b/go/tests/func/iterativefactorial_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func iterativeFactorial(nb int) int { diff --git a/go/tests/func/iterativepower_test/main.go b/go/tests/func/iterativepower_test/main.go index 9db09e2e..9795226a 100644 --- a/go/tests/func/iterativepower_test/main.go +++ b/go/tests/func/iterativepower_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func iterativePower(nb int, power int) int { diff --git a/go/tests/func/itoa_test/main.go b/go/tests/func/itoa_test/main.go index c068be98..26a0a61f 100644 --- a/go/tests/func/itoa_test/main.go +++ b/go/tests/func/itoa_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/itoabase_test/main.go b/go/tests/func/itoabase_test/main.go index f5b3688c..1576b889 100644 --- a/go/tests/func/itoabase_test/main.go +++ b/go/tests/func/itoabase_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func itoaBase(value, base int) string { diff --git a/go/tests/func/join_test/main.go b/go/tests/func/join_test/main.go index 2c2663b3..1bbfae88 100644 --- a/go/tests/func/join_test/main.go +++ b/go/tests/func/join_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func join(elems []string, sep string) string { diff --git a/go/tests/func/lastrune_test/main.go b/go/tests/func/lastrune_test/main.go index ab4d1cbe..f40e684e 100644 --- a/go/tests/func/lastrune_test/main.go +++ b/go/tests/func/lastrune_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func lastRune(s string) rune { diff --git a/go/tests/func/lcm_test/main.go b/go/tests/func/lcm_test/main.go index 3f1997ad..fbca2a6a 100644 --- a/go/tests/func/lcm_test/main.go +++ b/go/tests/func/lcm_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func gcd(first, second int) int { diff --git a/go/tests/func/listat_test/main.go b/go/tests/func/listat_test/main.go index 5cbb4074..6df75ea8 100644 --- a/go/tests/func/listat_test/main.go +++ b/go/tests/func/listat_test/main.go @@ -3,9 +3,9 @@ package main import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node5 = student.NodeL diff --git a/go/tests/func/listclear_test/main.go b/go/tests/func/listclear_test/main.go index bfe3b374..3e38b3cd 100644 --- a/go/tests/func/listclear_test/main.go +++ b/go/tests/func/listclear_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node4 = student.NodeL diff --git a/go/tests/func/listfind_test/main.go b/go/tests/func/listfind_test/main.go index b5181643..904ded74 100644 --- a/go/tests/func/listfind_test/main.go +++ b/go/tests/func/listfind_test/main.go @@ -3,9 +3,9 @@ package main import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node9 = student.NodeL diff --git a/go/tests/func/listforeach_test/main.go b/go/tests/func/listforeach_test/main.go index 2f8e0731..c65f0c3d 100644 --- a/go/tests/func/listforeach_test/main.go +++ b/go/tests/func/listforeach_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node7 = student.NodeL diff --git a/go/tests/func/listforeachif_test/main.go b/go/tests/func/listforeachif_test/main.go index 4e38640c..b24350da 100644 --- a/go/tests/func/listforeachif_test/main.go +++ b/go/tests/func/listforeachif_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node8 = student.NodeL diff --git a/go/tests/func/listlast_test/main.go b/go/tests/func/listlast_test/main.go index 4551e445..6a563679 100644 --- a/go/tests/func/listlast_test/main.go +++ b/go/tests/func/listlast_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node3 = student.NodeL diff --git a/go/tests/func/listmerge_test/main.go b/go/tests/func/listmerge_test/main.go index 82c31ab6..1d085b56 100644 --- a/go/tests/func/listmerge_test/main.go +++ b/go/tests/func/listmerge_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node11 = student.NodeL diff --git a/go/tests/func/listpushback_test/main.go b/go/tests/func/listpushback_test/main.go index 94375664..e957feb6 100644 --- a/go/tests/func/listpushback_test/main.go +++ b/go/tests/func/listpushback_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type ListS = correct.List diff --git a/go/tests/func/listpushfront_test/main.go b/go/tests/func/listpushfront_test/main.go index 75238106..44170e74 100644 --- a/go/tests/func/listpushfront_test/main.go +++ b/go/tests/func/listpushfront_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type ListSa = correct.List diff --git a/go/tests/func/listremoveif_test/main.go b/go/tests/func/listremoveif_test/main.go index 8f302c0a..73266f04 100644 --- a/go/tests/func/listremoveif_test/main.go +++ b/go/tests/func/listremoveif_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node10 = student.NodeL diff --git a/go/tests/func/listreverse_test/main.go b/go/tests/func/listreverse_test/main.go index 08b1b9e1..4f2691f8 100644 --- a/go/tests/func/listreverse_test/main.go +++ b/go/tests/func/listreverse_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node6 = student.NodeL diff --git a/go/tests/func/listsize_test/main.go b/go/tests/func/listsize_test/main.go index aef5fdc9..14b204da 100644 --- a/go/tests/func/listsize_test/main.go +++ b/go/tests/func/listsize_test/main.go @@ -3,9 +3,9 @@ package main import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type Node2 = student.NodeL diff --git a/go/tests/func/listsort_test/main.go b/go/tests/func/listsort_test/main.go index 5a99b267..ebb4837a 100644 --- a/go/tests/func/listsort_test/main.go +++ b/go/tests/func/listsort_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type NodeI12 = student.NodeI diff --git a/go/tests/func/makerange_test/main.go b/go/tests/func/makerange_test/main.go index 208ac2a5..9d464ea5 100644 --- a/go/tests/func/makerange_test/main.go +++ b/go/tests/func/makerange_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func makeRange(min, max int) []int { diff --git a/go/tests/func/map_test/main.go b/go/tests/func/map_test/main.go index 000751df..270b13e9 100644 --- a/go/tests/func/map_test/main.go +++ b/go/tests/func/map_test/main.go @@ -3,8 +3,8 @@ package main import ( student "student" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func isPositive(i int) bool { diff --git a/go/tests/func/max_test/main.go b/go/tests/func/max_test/main.go index ec279f47..dce4b92b 100644 --- a/go/tests/func/max_test/main.go +++ b/go/tests/func/max_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func max(a []int) int { diff --git a/go/tests/func/nauuo_test/main.go b/go/tests/func/nauuo_test/main.go index 7490289d..511decd0 100644 --- a/go/tests/func/nauuo_test/main.go +++ b/go/tests/func/nauuo_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func nauuo(plus, minus, rand int) string { diff --git a/go/tests/func/nrune_test/main.go b/go/tests/func/nrune_test/main.go index c637825c..003ebe7d 100644 --- a/go/tests/func/nrune_test/main.go +++ b/go/tests/func/nrune_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func nRune(s string, n int) rune { diff --git a/go/tests/func/pointone_test/main.go b/go/tests/func/pointone_test/main.go index 189d2b72..d7e6a8dc 100644 --- a/go/tests/func/pointone_test/main.go +++ b/go/tests/func/pointone_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func PointOne(n *int) { diff --git a/go/tests/func/printcomb2_test/main.go b/go/tests/func/printcomb2_test/main.go index 69223d99..22440442 100644 --- a/go/tests/func/printcomb2_test/main.go +++ b/go/tests/func/printcomb2_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func printComb2() { diff --git a/go/tests/func/printcomb_test/main.go b/go/tests/func/printcomb_test/main.go index 4f12ff8f..39a9be7c 100644 --- a/go/tests/func/printcomb_test/main.go +++ b/go/tests/func/printcomb_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func printComb() { diff --git a/go/tests/func/printcombn_test/main.go b/go/tests/func/printcombn_test/main.go index 23311c1a..7dcf1e2c 100644 --- a/go/tests/func/printcombn_test/main.go +++ b/go/tests/func/printcombn_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func show(n int, table [9]int, tmax [9]int) { diff --git a/go/tests/func/printmemory_test/main.go b/go/tests/func/printmemory_test/main.go index 7c33f95c..9513623d 100644 --- a/go/tests/func/printmemory_test/main.go +++ b/go/tests/func/printmemory_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func printBase(nbr int) int { diff --git a/go/tests/func/printnbr_test/main.go b/go/tests/func/printnbr_test/main.go index a98b0572..68e45cf5 100644 --- a/go/tests/func/printnbr_test/main.go +++ b/go/tests/func/printnbr_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func printNbr(n int) { diff --git a/go/tests/func/printnbrbase_test/main.go b/go/tests/func/printnbrbase_test/main.go index c6043551..b89d4984 100644 --- a/go/tests/func/printnbrbase_test/main.go +++ b/go/tests/func/printnbrbase_test/main.go @@ -5,8 +5,8 @@ import ( student "student" - "base" - "lib" + "github.com/01-edu/public/go/tests/base" + "github.com/01-edu/public/go/tests/lib" ) func printNbrBase(n int, b string) { diff --git a/go/tests/func/printnbrinorder_test/main.go b/go/tests/func/printnbrinorder_test/main.go index e586fd27..7a71c583 100644 --- a/go/tests/func/printnbrinorder_test/main.go +++ b/go/tests/func/printnbrinorder_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func intToDigits(n int) (digits []int) { diff --git a/go/tests/func/printstr_test/main.go b/go/tests/func/printstr_test/main.go index 13fc85d1..361a714c 100644 --- a/go/tests/func/printstr_test/main.go +++ b/go/tests/func/printstr_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func printStr(s string) { diff --git a/go/tests/func/printwordstables_test/main.go b/go/tests/func/printwordstables_test/main.go index f74a2382..f25aa4b7 100644 --- a/go/tests/func/printwordstables_test/main.go +++ b/go/tests/func/printwordstables_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func printWordsTables(a []string) { diff --git a/go/tests/func/priorprime_test/main.go b/go/tests/func/priorprime_test/main.go index f7b74c4e..6ab0b826 100644 --- a/go/tests/func/priorprime_test/main.go +++ b/go/tests/func/priorprime_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func priorPrime(x int) int { diff --git a/go/tests/func/quada_test/main.go b/go/tests/func/quada_test/main.go index a1f12efa..ab9beaf2 100644 --- a/go/tests/func/quada_test/main.go +++ b/go/tests/func/quada_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func drawLine(x int, s string) { diff --git a/go/tests/func/quadb_test/main.go b/go/tests/func/quadb_test/main.go index 658d51e8..23db4708 100644 --- a/go/tests/func/quadb_test/main.go +++ b/go/tests/func/quadb_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func drawLineQuadB(x int, s string) { diff --git a/go/tests/func/quadc_test/main.go b/go/tests/func/quadc_test/main.go index b512b50b..952e9232 100644 --- a/go/tests/func/quadc_test/main.go +++ b/go/tests/func/quadc_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func drawLineQuadC(x int, s string) { diff --git a/go/tests/func/quadd_test/main.go b/go/tests/func/quadd_test/main.go index f7ef33e0..b8a9725d 100644 --- a/go/tests/func/quadd_test/main.go +++ b/go/tests/func/quadd_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func drawLineQuadD(x int, s string) { diff --git a/go/tests/func/quade_test/main.go b/go/tests/func/quade_test/main.go index 90332f2a..491d4cf5 100644 --- a/go/tests/func/quade_test/main.go +++ b/go/tests/func/quade_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func drawLineQuadE(x int, s string) { diff --git a/go/tests/func/reachablenumber_test/main.go b/go/tests/func/reachablenumber_test/main.go index 4cc6504b..4793382b 100644 --- a/go/tests/func/reachablenumber_test/main.go +++ b/go/tests/func/reachablenumber_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func reachableNumber(n int) int { diff --git a/go/tests/func/recursivefactorial_test/main.go b/go/tests/func/recursivefactorial_test/main.go index aa158f15..6646b920 100644 --- a/go/tests/func/recursivefactorial_test/main.go +++ b/go/tests/func/recursivefactorial_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func recursiveFactorial(nb int) int { diff --git a/go/tests/func/recursivepower_test/main.go b/go/tests/func/recursivepower_test/main.go index 79cb6b86..c8f706ad 100644 --- a/go/tests/func/recursivepower_test/main.go +++ b/go/tests/func/recursivepower_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func recursivePower(nb, power int) int { diff --git a/go/tests/func/reduceint_test/main.go b/go/tests/func/reduceint_test/main.go index 84a45337..65e7d4fd 100644 --- a/go/tests/func/reduceint_test/main.go +++ b/go/tests/func/reduceint_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func reduceInt(a []int, f func(int, int) int) { diff --git a/go/tests/func/reversebits_test/main.go b/go/tests/func/reversebits_test/main.go index b5b723a5..22deb03e 100644 --- a/go/tests/func/reversebits_test/main.go +++ b/go/tests/func/reversebits_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func reverseBits(octet byte) byte { diff --git a/go/tests/func/revivethreenums_test/main.go b/go/tests/func/revivethreenums_test/main.go index 757f5b03..32b89ced 100644 --- a/go/tests/func/revivethreenums_test/main.go +++ b/go/tests/func/revivethreenums_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func max(ints ...int) int { diff --git a/go/tests/func/rot14_test/main.go b/go/tests/func/rot14_test/main.go index 6509423d..f35e8a1d 100644 --- a/go/tests/func/rot14_test/main.go +++ b/go/tests/func/rot14_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func rot14(s string) (result string) { diff --git a/go/tests/func/slice_test/main.go b/go/tests/func/slice_test/main.go index a685ab28..c9fdb755 100644 --- a/go/tests/func/slice_test/main.go +++ b/go/tests/func/slice_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func ifNegative(a []string, n int) int { diff --git a/go/tests/func/sortedlistmerge_test/main.go b/go/tests/func/sortedlistmerge_test/main.go index 13adfa1d..4783b052 100644 --- a/go/tests/func/sortedlistmerge_test/main.go +++ b/go/tests/func/sortedlistmerge_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type NodeI13 = student.NodeI diff --git a/go/tests/func/sortintegertable_test/main.go b/go/tests/func/sortintegertable_test/main.go index d3c9c444..9b224c75 100644 --- a/go/tests/func/sortintegertable_test/main.go +++ b/go/tests/func/sortintegertable_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func sortIntegerTable(a []int) { diff --git a/go/tests/func/sortlistinsert_test/main.go b/go/tests/func/sortlistinsert_test/main.go index 72302767..4c186d12 100644 --- a/go/tests/func/sortlistinsert_test/main.go +++ b/go/tests/func/sortlistinsert_test/main.go @@ -5,9 +5,9 @@ import ( student "student" - "func/correct" + "github.com/01-edu/public/go/tests/func/correct" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type NodeI14 = student.NodeI diff --git a/go/tests/func/sortwordarr_test/main.go b/go/tests/func/sortwordarr_test/main.go index d7baf0f9..9c09c80d 100644 --- a/go/tests/func/sortwordarr_test/main.go +++ b/go/tests/func/sortwordarr_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/split_test/main.go b/go/tests/func/split_test/main.go index 95a794fd..e49768c8 100644 --- a/go/tests/func/split_test/main.go +++ b/go/tests/func/split_test/main.go @@ -6,7 +6,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/splitwhitespaces_test/main.go b/go/tests/func/splitwhitespaces_test/main.go index 93c584e4..237ad693 100644 --- a/go/tests/func/splitwhitespaces_test/main.go +++ b/go/tests/func/splitwhitespaces_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/sqrt_test/main.go b/go/tests/func/sqrt_test/main.go index 58dbce64..65a76487 100644 --- a/go/tests/func/sqrt_test/main.go +++ b/go/tests/func/sqrt_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func sqrt(value int) int { diff --git a/go/tests/func/strlen_test/main.go b/go/tests/func/strlen_test/main.go index 710dbcb2..b69fca61 100644 --- a/go/tests/func/strlen_test/main.go +++ b/go/tests/func/strlen_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func strLen(s string) int { diff --git a/go/tests/func/strrev_test/main.go b/go/tests/func/strrev_test/main.go index 60a7528e..66eacc53 100644 --- a/go/tests/func/strrev_test/main.go +++ b/go/tests/func/strrev_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func strRev(s string) string { diff --git a/go/tests/func/swap_test/main.go b/go/tests/func/swap_test/main.go index 250ab12e..cb826686 100644 --- a/go/tests/func/swap_test/main.go +++ b/go/tests/func/swap_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/swapbits_test/main.go b/go/tests/func/swapbits_test/main.go index d18310c3..20c41e32 100644 --- a/go/tests/func/swapbits_test/main.go +++ b/go/tests/func/swapbits_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func swapBits(n byte) byte { diff --git a/go/tests/func/sweetproblem_test/main.go b/go/tests/func/sweetproblem_test/main.go index a3bdde59..8202ac83 100644 --- a/go/tests/func/sweetproblem_test/main.go +++ b/go/tests/func/sweetproblem_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func min3(a, b, c int) int { diff --git a/go/tests/func/tolower_test/main.go b/go/tests/func/tolower_test/main.go index dc06f31f..65baedc0 100644 --- a/go/tests/func/tolower_test/main.go +++ b/go/tests/func/tolower_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/toupper_test/main.go b/go/tests/func/toupper_test/main.go index 538e776e..accf8587 100644 --- a/go/tests/func/toupper_test/main.go +++ b/go/tests/func/toupper_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/trimatoi_test/main.go b/go/tests/func/trimatoi_test/main.go index be791ffa..24b968da 100644 --- a/go/tests/func/trimatoi_test/main.go +++ b/go/tests/func/trimatoi_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func trimAtoi(s string) int { diff --git a/go/tests/func/twosum_test/main.go b/go/tests/func/twosum_test/main.go index 491018a1..7f44c5fb 100644 --- a/go/tests/func/twosum_test/main.go +++ b/go/tests/func/twosum_test/main.go @@ -5,7 +5,7 @@ import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func twoSum(nums []int, target int) []int { diff --git a/go/tests/func/ultimatedivmod_test/main.go b/go/tests/func/ultimatedivmod_test/main.go index ee5ad335..998cee9a 100644 --- a/go/tests/func/ultimatedivmod_test/main.go +++ b/go/tests/func/ultimatedivmod_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/ultimatepointone_test/main.go b/go/tests/func/ultimatepointone_test/main.go index 5b7df915..700d11e1 100644 --- a/go/tests/func/ultimatepointone_test/main.go +++ b/go/tests/func/ultimatepointone_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/func/unmatch_test/main.go b/go/tests/func/unmatch_test/main.go index b66751f5..71fb2167 100644 --- a/go/tests/func/unmatch_test/main.go +++ b/go/tests/func/unmatch_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) // Returns the element of the slice that doesn't have a correspondant pair diff --git a/go/tests/func/volumechanger_test/main.go b/go/tests/func/volumechanger_test/main.go index 4f7bd79f..1f8f181a 100644 --- a/go/tests/func/volumechanger_test/main.go +++ b/go/tests/func/volumechanger_test/main.go @@ -3,7 +3,7 @@ package main import ( student "student" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func abs(a int) int { diff --git a/go/tests/go.mod b/go/tests/go.mod new file mode 100644 index 00000000..f613b833 --- /dev/null +++ b/go/tests/go.mod @@ -0,0 +1,12 @@ +module github.com/01-edu/public/go/tests + +go 1.16 + +require ( + github.com/01-edu/z01 v0.1.0 + github.com/mattn/go-runewidth v0.0.10 // indirect + github.com/tatsushid/go-prettytable v0.0.0-20141013043238-ed2d14c29939 + student v0.0.0 +) + +replace student => ../../../jail/student diff --git a/go/tests/go.sum b/go/tests/go.sum new file mode 100644 index 00000000..4f1e49b6 --- /dev/null +++ b/go/tests/go.sum @@ -0,0 +1,8 @@ +github.com/01-edu/z01 v0.1.0 h1:Rr1p92CKYXUgVFw872iGDABXpdkuKf2jmS+KV6r1034= +github.com/01-edu/z01 v0.1.0/go.mod h1:BH7t35JaNFuP83rTJDc5nkSfgmC/HYVcJsUcdFqYZNo= +github.com/mattn/go-runewidth v0.0.10 h1:CoZ3S2P7pvtP45xOtBw+/mDL2z0RKI576gSkzRRpdGg= +github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= +github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY= +github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/tatsushid/go-prettytable v0.0.0-20141013043238-ed2d14c29939 h1:BhIUXV2ySTLrKgh/Hnts+QTQlIbWtomXt3LMdzME0A0= +github.com/tatsushid/go-prettytable v0.0.0-20141013043238-ed2d14c29939/go.mod h1:omGxs4/6hNjxPKUTjmaNkPzehSnNJOJN6pMEbrlYIT4= diff --git a/go/tests/prog/addprimesum_prog/main.go b/go/tests/prog/addprimesum_prog/main.go index c3d83321..3cf22831 100644 --- a/go/tests/prog/addprimesum_prog/main.go +++ b/go/tests/prog/addprimesum_prog/main.go @@ -5,7 +5,7 @@ import ( "os" "strconv" - "lib/is" + "github.com/01-edu/public/go/tests/lib/is" ) func main() { diff --git a/go/tests/prog/addprimesum_test/main.go b/go/tests/prog/addprimesum_test/main.go index b6c7c4a9..f81cb15c 100644 --- a/go/tests/prog/addprimesum_test/main.go +++ b/go/tests/prog/addprimesum_test/main.go @@ -3,8 +3,8 @@ package main import ( "strconv" - "lib" - "lib/is" + "github.com/01-edu/public/go/tests/lib" + "github.com/01-edu/public/go/tests/lib/is" ) func main() { diff --git a/go/tests/prog/alphamirror_test/main.go b/go/tests/prog/alphamirror_test/main.go index 016ded1b..a3e51b27 100644 --- a/go/tests/prog/alphamirror_test/main.go +++ b/go/tests/prog/alphamirror_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/balancedstring_test/main.go b/go/tests/prog/balancedstring_test/main.go index 29e24fd9..951ca881 100644 --- a/go/tests/prog/balancedstring_test/main.go +++ b/go/tests/prog/balancedstring_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/boolean_test/main.go b/go/tests/prog/boolean_test/main.go index bb79c840..065c35fd 100644 --- a/go/tests/prog/boolean_test/main.go +++ b/go/tests/prog/boolean_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/brackets_test/main.go b/go/tests/prog/brackets_test/main.go index 32a882e6..c80e8ede 100644 --- a/go/tests/prog/brackets_test/main.go +++ b/go/tests/prog/brackets_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/brainfuck_test/main.go b/go/tests/prog/brainfuck_test/main.go index 0593302b..078e5420 100644 --- a/go/tests/prog/brainfuck_test/main.go +++ b/go/tests/prog/brainfuck_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/cat_prog/main.go b/go/tests/prog/cat_prog/main.go index 6c64a22c..68de2d2d 100644 --- a/go/tests/prog/cat_prog/main.go +++ b/go/tests/prog/cat_prog/main.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "os" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/cat_test/main.go b/go/tests/prog/cat_test/main.go index 929ce624..5b9c67e5 100644 --- a/go/tests/prog/cat_test/main.go +++ b/go/tests/prog/cat_test/main.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/cleanstr_test/main.go b/go/tests/prog/cleanstr_test/main.go index 69c13c75..c88c8767 100644 --- a/go/tests/prog/cleanstr_test/main.go +++ b/go/tests/prog/cleanstr_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/comcheck_test/main.go b/go/tests/prog/comcheck_test/main.go index 773e95d9..aaa368e5 100644 --- a/go/tests/prog/comcheck_test/main.go +++ b/go/tests/prog/comcheck_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/costumeprofit_test/main.go b/go/tests/prog/costumeprofit_test/main.go index 3b83eb33..c015d2ca 100644 --- a/go/tests/prog/costumeprofit_test/main.go +++ b/go/tests/prog/costumeprofit_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/countdown_test/main.go b/go/tests/prog/countdown_test/main.go index 6e7ee0a1..9eed9530 100644 --- a/go/tests/prog/countdown_test/main.go +++ b/go/tests/prog/countdown_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/displaya_test/main.go b/go/tests/prog/displaya_test/main.go index 24e3d396..79fee29a 100644 --- a/go/tests/prog/displaya_test/main.go +++ b/go/tests/prog/displaya_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/displayalpham_test/main.go b/go/tests/prog/displayalpham_test/main.go index 45890835..2f54d5bb 100644 --- a/go/tests/prog/displayalpham_test/main.go +++ b/go/tests/prog/displayalpham_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/displayalrevm_test/main.go b/go/tests/prog/displayalrevm_test/main.go index 5c4cf80b..d0345f40 100644 --- a/go/tests/prog/displayalrevm_test/main.go +++ b/go/tests/prog/displayalrevm_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/displayfile_test/main.go b/go/tests/prog/displayfile_test/main.go index 83708257..e35bad1e 100644 --- a/go/tests/prog/displayfile_test/main.go +++ b/go/tests/prog/displayfile_test/main.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/displayfirstparam_test/main.go b/go/tests/prog/displayfirstparam_test/main.go index 92e9ea3f..aede0251 100644 --- a/go/tests/prog/displayfirstparam_test/main.go +++ b/go/tests/prog/displayfirstparam_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/displaylastparam_test/main.go b/go/tests/prog/displaylastparam_test/main.go index 4c6c223a..a29d3a39 100644 --- a/go/tests/prog/displaylastparam_test/main.go +++ b/go/tests/prog/displaylastparam_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/displayz_test/main.go b/go/tests/prog/displayz_test/main.go index 79faa75e..081700c4 100644 --- a/go/tests/prog/displayz_test/main.go +++ b/go/tests/prog/displayz_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/doop_test/main.go b/go/tests/prog/doop_test/main.go index af5c973e..89456ac5 100644 --- a/go/tests/prog/doop_test/main.go +++ b/go/tests/prog/doop_test/main.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/expandstr_test/main.go b/go/tests/prog/expandstr_test/main.go index 8a8f0a01..4182cdd1 100644 --- a/go/tests/prog/expandstr_test/main.go +++ b/go/tests/prog/expandstr_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/firstword_test/main.go b/go/tests/prog/firstword_test/main.go index 33ff7af0..f761c311 100644 --- a/go/tests/prog/firstword_test/main.go +++ b/go/tests/prog/firstword_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/fixthemain_test/main.go b/go/tests/prog/fixthemain_test/main.go index c6360b23..d957bd4c 100644 --- a/go/tests/prog/fixthemain_test/main.go +++ b/go/tests/prog/fixthemain_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/flags_test/main.go b/go/tests/prog/flags_test/main.go index c6b19288..c0f0bff2 100644 --- a/go/tests/prog/flags_test/main.go +++ b/go/tests/prog/flags_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) type node struct { diff --git a/go/tests/prog/fprime_test/main.go b/go/tests/prog/fprime_test/main.go index bf945214..a12f2092 100644 --- a/go/tests/prog/fprime_test/main.go +++ b/go/tests/prog/fprime_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/gcd_prog/main.go b/go/tests/prog/gcd_prog/main.go index a541a779..de6f9c63 100644 --- a/go/tests/prog/gcd_prog/main.go +++ b/go/tests/prog/gcd_prog/main.go @@ -5,7 +5,7 @@ import ( "os" "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/gcd_test/main.go b/go/tests/prog/gcd_test/main.go index e006433e..ac388e45 100644 --- a/go/tests/prog/gcd_test/main.go +++ b/go/tests/prog/gcd_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/grouping_test/main.go b/go/tests/prog/grouping_test/main.go index c7b8f7ae..d7087778 100644 --- a/go/tests/prog/grouping_test/main.go +++ b/go/tests/prog/grouping_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func validRegExp(n int) string { diff --git a/go/tests/prog/hello_test/main.go b/go/tests/prog/hello_test/main.go index bfa3a1e9..f5df475e 100644 --- a/go/tests/prog/hello_test/main.go +++ b/go/tests/prog/hello_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/hiddenp_test/main.go b/go/tests/prog/hiddenp_test/main.go index cea0fbb0..9ca5f32d 100644 --- a/go/tests/prog/hiddenp_test/main.go +++ b/go/tests/prog/hiddenp_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/inter_test/main.go b/go/tests/prog/inter_test/main.go index e01193a0..4231177d 100644 --- a/go/tests/prog/inter_test/main.go +++ b/go/tests/prog/inter_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/ispowerof2_test/main.go b/go/tests/prog/ispowerof2_test/main.go index f031cbf1..71816b85 100644 --- a/go/tests/prog/ispowerof2_test/main.go +++ b/go/tests/prog/ispowerof2_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/lastword_test/main.go b/go/tests/prog/lastword_test/main.go index 04303e61..4f75d165 100644 --- a/go/tests/prog/lastword_test/main.go +++ b/go/tests/prog/lastword_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/nbrconvertalpha_test/main.go b/go/tests/prog/nbrconvertalpha_test/main.go index 7f740e87..d081bbde 100644 --- a/go/tests/prog/nbrconvertalpha_test/main.go +++ b/go/tests/prog/nbrconvertalpha_test/main.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/nenokku_test/main.go b/go/tests/prog/nenokku_test/main.go index 82efba19..e26d67d6 100644 --- a/go/tests/prog/nenokku_test/main.go +++ b/go/tests/prog/nenokku_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/onlya_test/main.go b/go/tests/prog/onlya_test/main.go index 0a10fa5e..a58a3667 100644 --- a/go/tests/prog/onlya_test/main.go +++ b/go/tests/prog/onlya_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/onlyz_test/main.go b/go/tests/prog/onlyz_test/main.go index f5797dd8..782fff28 100644 --- a/go/tests/prog/onlyz_test/main.go +++ b/go/tests/prog/onlyz_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/options_test/main.go b/go/tests/prog/options_test/main.go index 7985bf86..1973f5df 100644 --- a/go/tests/prog/options_test/main.go +++ b/go/tests/prog/options_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/paramcount_test/main.go b/go/tests/prog/paramcount_test/main.go index a1475aeb..08ec1d0c 100644 --- a/go/tests/prog/paramcount_test/main.go +++ b/go/tests/prog/paramcount_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/piglatin_test/main.go b/go/tests/prog/piglatin_test/main.go index 9ff757ef..e41f05cf 100644 --- a/go/tests/prog/piglatin_test/main.go +++ b/go/tests/prog/piglatin_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/pilot_test/main.go b/go/tests/prog/pilot_test/main.go index 183702a3..cb87d3aa 100644 --- a/go/tests/prog/pilot_test/main.go +++ b/go/tests/prog/pilot_test/main.go @@ -1,6 +1,6 @@ package main -import "lib" +import "github.com/01-edu/public/go/tests/lib" func main() { lib.ChallengeMain("pilot") diff --git a/go/tests/prog/point_test/main.go b/go/tests/prog/point_test/main.go index 20d28f6d..303fa845 100644 --- a/go/tests/prog/point_test/main.go +++ b/go/tests/prog/point_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printalphabet_test/main.go b/go/tests/prog/printalphabet_test/main.go index a41585f3..06ddf39d 100644 --- a/go/tests/prog/printalphabet_test/main.go +++ b/go/tests/prog/printalphabet_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printalphabetalt2_test/main.go b/go/tests/prog/printalphabetalt2_test/main.go index b786bd40..f6d420ce 100644 --- a/go/tests/prog/printalphabetalt2_test/main.go +++ b/go/tests/prog/printalphabetalt2_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printalphabetalt_test/main.go b/go/tests/prog/printalphabetalt_test/main.go index 3f0c6890..4db635a2 100644 --- a/go/tests/prog/printalphabetalt_test/main.go +++ b/go/tests/prog/printalphabetalt_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printalphabetg_test/main.go b/go/tests/prog/printalphabetg_test/main.go index 527b99b1..47f6d957 100644 --- a/go/tests/prog/printalphabetg_test/main.go +++ b/go/tests/prog/printalphabetg_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printalt2_test/main.go b/go/tests/prog/printalt2_test/main.go index c826233b..aa65b015 100644 --- a/go/tests/prog/printalt2_test/main.go +++ b/go/tests/prog/printalt2_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printalt_test/main.go b/go/tests/prog/printalt_test/main.go index 19757912..c6d9ecca 100644 --- a/go/tests/prog/printalt_test/main.go +++ b/go/tests/prog/printalt_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printaltu2_test/main.go b/go/tests/prog/printaltu2_test/main.go index edd70b56..0240ac6c 100644 --- a/go/tests/prog/printaltu2_test/main.go +++ b/go/tests/prog/printaltu2_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printaltu_test/main.go b/go/tests/prog/printaltu_test/main.go index 9f155211..360d3035 100644 --- a/go/tests/prog/printaltu_test/main.go +++ b/go/tests/prog/printaltu_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printbits_test/main.go b/go/tests/prog/printbits_test/main.go index dfb2db8a..dda5cbe4 100644 --- a/go/tests/prog/printbits_test/main.go +++ b/go/tests/prog/printbits_test/main.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printchessboard_test/main.go b/go/tests/prog/printchessboard_test/main.go index b8dade65..8c42c7d3 100644 --- a/go/tests/prog/printchessboard_test/main.go +++ b/go/tests/prog/printchessboard_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printdigits_test/main.go b/go/tests/prog/printdigits_test/main.go index d65299b5..d4584214 100644 --- a/go/tests/prog/printdigits_test/main.go +++ b/go/tests/prog/printdigits_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printhex_test/main.go b/go/tests/prog/printhex_test/main.go index 86c1fcc3..d0f511fa 100644 --- a/go/tests/prog/printhex_test/main.go +++ b/go/tests/prog/printhex_test/main.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printparams_test/main.go b/go/tests/prog/printparams_test/main.go index f82e48c4..c7b5900f 100644 --- a/go/tests/prog/printparams_test/main.go +++ b/go/tests/prog/printparams_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printprogramname_test/main.go b/go/tests/prog/printprogramname_test/main.go index 24e82aa4..d94240a6 100644 --- a/go/tests/prog/printprogramname_test/main.go +++ b/go/tests/prog/printprogramname_test/main.go @@ -4,7 +4,7 @@ import ( "os" "os/exec" - "lib" + "github.com/01-edu/public/go/tests/lib" ) var oldName = "exe" diff --git a/go/tests/prog/printrevcomb_test/main.go b/go/tests/prog/printrevcomb_test/main.go index 8a0d9312..25e69197 100644 --- a/go/tests/prog/printrevcomb_test/main.go +++ b/go/tests/prog/printrevcomb_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printreversealphabet_test/main.go b/go/tests/prog/printreversealphabet_test/main.go index ac7f686d..9e7eee6c 100644 --- a/go/tests/prog/printreversealphabet_test/main.go +++ b/go/tests/prog/printreversealphabet_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printreversealphabetalt2_test/main.go b/go/tests/prog/printreversealphabetalt2_test/main.go index 6eb0db24..6c7938f8 100644 --- a/go/tests/prog/printreversealphabetalt2_test/main.go +++ b/go/tests/prog/printreversealphabetalt2_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printreversealphabetalt_test/main.go b/go/tests/prog/printreversealphabetalt_test/main.go index d40bbd82..e0725c9d 100644 --- a/go/tests/prog/printreversealphabetalt_test/main.go +++ b/go/tests/prog/printreversealphabetalt_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printreversealphabetg_test/main.go b/go/tests/prog/printreversealphabetg_test/main.go index 59d6fdf9..7dffd7ec 100644 --- a/go/tests/prog/printreversealphabetg_test/main.go +++ b/go/tests/prog/printreversealphabetg_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/printrot_test/main.go b/go/tests/prog/printrot_test/main.go index 64711fa3..21166f77 100644 --- a/go/tests/prog/printrot_test/main.go +++ b/go/tests/prog/printrot_test/main.go @@ -1,8 +1,9 @@ package main import ( - "lib" "strings" + + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/raid3_test/main.go b/go/tests/prog/raid3_test/main.go index c9fb5f5a..0f056d5c 100644 --- a/go/tests/prog/raid3_test/main.go +++ b/go/tests/prog/raid3_test/main.go @@ -4,7 +4,7 @@ import ( "os/exec" "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/range_test/main.go b/go/tests/prog/range_test/main.go index 91d5ce88..0a8e96eb 100644 --- a/go/tests/prog/range_test/main.go +++ b/go/tests/prog/range_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/rectangle_test/main.go b/go/tests/prog/rectangle_test/main.go index d5bab90f..46d1f826 100644 --- a/go/tests/prog/rectangle_test/main.go +++ b/go/tests/prog/rectangle_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/repeatalpha_test/main.go b/go/tests/prog/repeatalpha_test/main.go index 2e6f456e..64906878 100644 --- a/go/tests/prog/repeatalpha_test/main.go +++ b/go/tests/prog/repeatalpha_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/reverserange_test/main.go b/go/tests/prog/reverserange_test/main.go index aaf128cc..391b5b63 100644 --- a/go/tests/prog/reverserange_test/main.go +++ b/go/tests/prog/reverserange_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/reversestrcap_test/main.go b/go/tests/prog/reversestrcap_test/main.go index 5d45f203..aec38317 100644 --- a/go/tests/prog/reversestrcap_test/main.go +++ b/go/tests/prog/reversestrcap_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/revparams_test/main.go b/go/tests/prog/revparams_test/main.go index 5291006f..daae82c0 100644 --- a/go/tests/prog/revparams_test/main.go +++ b/go/tests/prog/revparams_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/revwstr_test/main.go b/go/tests/prog/revwstr_test/main.go index 45b96625..fa176380 100644 --- a/go/tests/prog/revwstr_test/main.go +++ b/go/tests/prog/revwstr_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/robottoorigin_test/main.go b/go/tests/prog/robottoorigin_test/main.go index 48951f02..8611cb9d 100644 --- a/go/tests/prog/robottoorigin_test/main.go +++ b/go/tests/prog/robottoorigin_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/romannumbers_test/main.go b/go/tests/prog/romannumbers_test/main.go index e2040467..39220ec7 100644 --- a/go/tests/prog/romannumbers_test/main.go +++ b/go/tests/prog/romannumbers_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/rostring_test/main.go b/go/tests/prog/rostring_test/main.go index 8b731471..0778c481 100644 --- a/go/tests/prog/rostring_test/main.go +++ b/go/tests/prog/rostring_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/rot13_test/main.go b/go/tests/prog/rot13_test/main.go index 756de72a..38aea2e4 100644 --- a/go/tests/prog/rot13_test/main.go +++ b/go/tests/prog/rot13_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/rotatevowels_test/main.go b/go/tests/prog/rotatevowels_test/main.go index c2518fd6..0b2fbde0 100644 --- a/go/tests/prog/rotatevowels_test/main.go +++ b/go/tests/prog/rotatevowels_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/rpncalc_test/main.go b/go/tests/prog/rpncalc_test/main.go index eac59de6..28197de1 100644 --- a/go/tests/prog/rpncalc_test/main.go +++ b/go/tests/prog/rpncalc_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/searchreplace_test/main.go b/go/tests/prog/searchreplace_test/main.go index d6eb9578..fa84c900 100644 --- a/go/tests/prog/searchreplace_test/main.go +++ b/go/tests/prog/searchreplace_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/sortparams_test/main.go b/go/tests/prog/sortparams_test/main.go index 0b4c31a4..74fbd1a4 100644 --- a/go/tests/prog/sortparams_test/main.go +++ b/go/tests/prog/sortparams_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/sudoku_test/main.go b/go/tests/prog/sudoku_test/main.go index 73686fa4..a6a7c70a 100644 --- a/go/tests/prog/sudoku_test/main.go +++ b/go/tests/prog/sudoku_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/switchcase_test/main.go b/go/tests/prog/switchcase_test/main.go index 572638c0..ebffb504 100644 --- a/go/tests/prog/switchcase_test/main.go +++ b/go/tests/prog/switchcase_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/tabmult_test/main.go b/go/tests/prog/tabmult_test/main.go index aa75119c..3fd04fbb 100644 --- a/go/tests/prog/tabmult_test/main.go +++ b/go/tests/prog/tabmult_test/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/tetrisoptimizer_test/main.go b/go/tests/prog/tetrisoptimizer_test/main.go index 8218f833..b87c50d1 100644 --- a/go/tests/prog/tetrisoptimizer_test/main.go +++ b/go/tests/prog/tetrisoptimizer_test/main.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "lib" + "github.com/01-edu/public/go/tests/lib" ) type ( diff --git a/go/tests/prog/union_test/main.go b/go/tests/prog/union_test/main.go index f3923683..e1af0172 100644 --- a/go/tests/prog/union_test/main.go +++ b/go/tests/prog/union_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/uniqueoccurences_test/main.go b/go/tests/prog/uniqueoccurences_test/main.go index 0f6a659b..92d002b7 100644 --- a/go/tests/prog/uniqueoccurences_test/main.go +++ b/go/tests/prog/uniqueoccurences_test/main.go @@ -1,7 +1,7 @@ package main import ( - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/wdmatch_test/main.go b/go/tests/prog/wdmatch_test/main.go index a008d6a2..f1288e64 100644 --- a/go/tests/prog/wdmatch_test/main.go +++ b/go/tests/prog/wdmatch_test/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() { diff --git a/go/tests/prog/ztail_test/main.go b/go/tests/prog/ztail_test/main.go index 35064a8e..76b82ba1 100644 --- a/go/tests/prog/ztail_test/main.go +++ b/go/tests/prog/ztail_test/main.go @@ -4,7 +4,7 @@ import ( "io/ioutil" "os" - "lib" + "github.com/01-edu/public/go/tests/lib" ) func main() {