Browse Source

Fix paths & doc

pull/768/head
xpetit 3 years ago
parent
commit
d8c9b6a79b
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 2
      test-go/Dockerfile
  2. 19
      test-go/README.md
  3. 2
      test-go/entrypoint.sh
  4. 4
      test-go/go.mod
  5. 2
      test-go/lib/base/base.go
  6. 2
      test-go/lib/lib.go
  7. 2
      test-go/solutions/addprimesum_prog/main.go
  8. 2
      test-go/solutions/cat_prog/main.go
  9. 2
      test-go/solutions/gcd_prog/main.go
  10. 2
      test-go/tests/abort_test/main.go
  11. 2
      test-go/tests/activebits_test/main.go
  12. 4
      test-go/tests/addprimesum_test/main.go
  13. 2
      test-go/tests/advancedsortwordarr_test/main.go
  14. 2
      test-go/tests/alphacount_test/main.go
  15. 2
      test-go/tests/alphamirror_test/main.go
  16. 4
      test-go/tests/any_test/main.go
  17. 2
      test-go/tests/appendrange_test/main.go
  18. 2
      test-go/tests/atoi_test/main.go
  19. 4
      test-go/tests/atoibase_test/main.go
  20. 2
      test-go/tests/balancedstring_test/main.go
  21. 2
      test-go/tests/basicatoi2_test/main.go
  22. 2
      test-go/tests/basicatoi_test/main.go
  23. 2
      test-go/tests/basicjoin_test/main.go
  24. 2
      test-go/tests/boolean_test/main.go
  25. 2
      test-go/tests/brackets_test/main.go
  26. 2
      test-go/tests/brainfuck_test/main.go
  27. 2
      test-go/tests/btreeapplybylevel_test/main.go
  28. 2
      test-go/tests/btreeapplyinorder_test/main.go
  29. 2
      test-go/tests/btreeapplypostorder_test/main.go
  30. 2
      test-go/tests/btreeapplypreorder_test/main.go
  31. 5
      test-go/tests/btreedeletenode_test/main.go
  32. 5
      test-go/tests/btreeinsertdata_test/main.go
  33. 5
      test-go/tests/btreeisbinary_test/main.go
  34. 5
      test-go/tests/btreelevelcount_test/main.go
  35. 5
      test-go/tests/btreemax_test/main.go
  36. 5
      test-go/tests/btreemin_test/main.go
  37. 5
      test-go/tests/btreesearchitem_test/main.go
  38. 5
      test-go/tests/btreetransplant_test/main.go
  39. 2
      test-go/tests/capitalize_test/main.go
  40. 2
      test-go/tests/cat_test/main.go
  41. 2
      test-go/tests/chunk_test/main.go
  42. 2
      test-go/tests/cleanstr_test/main.go
  43. 2
      test-go/tests/collatzcountdown_test/main.go
  44. 2
      test-go/tests/comcheck_test/main.go
  45. 2
      test-go/tests/compact_test/main.go
  46. 2
      test-go/tests/compare_test/main.go
  47. 2
      test-go/tests/concat_test/main.go
  48. 2
      test-go/tests/concatparams_test/main.go
  49. 4
      test-go/tests/convertbase_test/main.go
  50. 2
      test-go/tests/correct/challenge.go
  51. 2
      test-go/tests/costumeprofit_test/main.go
  52. 2
      test-go/tests/countdown_test/main.go
  53. 4
      test-go/tests/countif_test/main.go
  54. 2
      test-go/tests/displaya_test/main.go
  55. 2
      test-go/tests/displayalpham_test/main.go
  56. 2
      test-go/tests/displayalrevm_test/main.go
  57. 2
      test-go/tests/displayfile_test/main.go
  58. 2
      test-go/tests/displayfirstparam_test/main.go
  59. 2
      test-go/tests/displaylastparam_test/main.go
  60. 2
      test-go/tests/displayz_test/main.go
  61. 2
      test-go/tests/divmod_test/main.go
  62. 2
      test-go/tests/doop_test/main.go
  63. 2
      test-go/tests/doppelganger_test/main.go
  64. 2
      test-go/tests/eightqueens_test/main.go
  65. 2
      test-go/tests/enigma_test/main.go
  66. 2
      test-go/tests/expandstr_test/main.go
  67. 2
      test-go/tests/fib_test/main.go
  68. 2
      test-go/tests/fibonacci_test/main.go
  69. 4
      test-go/tests/findnextprime_test/main.go
  70. 4
      test-go/tests/findprevprime_test/main.go
  71. 2
      test-go/tests/firstrune_test/main.go
  72. 2
      test-go/tests/firstword_test/main.go
  73. 2
      test-go/tests/fixthemain_test/main.go
  74. 2
      test-go/tests/flags_test/main.go
  75. 2
      test-go/tests/foldint_test/main.go
  76. 2
      test-go/tests/foreach_test/main.go
  77. 2
      test-go/tests/fprime_test/main.go
  78. 2
      test-go/tests/game23_test/main.go
  79. 2
      test-go/tests/gcd_test/main.go
  80. 2
      test-go/tests/grouping_test/main.go
  81. 2
      test-go/tests/halfcontest_test/main.go
  82. 2
      test-go/tests/hello_test/main.go
  83. 2
      test-go/tests/hiddenp_test/main.go
  84. 2
      test-go/tests/index_test/main.go
  85. 2
      test-go/tests/inter_test/main.go
  86. 2
      test-go/tests/interestingnumber_test/main.go
  87. 2
      test-go/tests/isalpha_test/main.go
  88. 2
      test-go/tests/isanagram_test/main.go
  89. 4
      test-go/tests/islower_test/main.go
  90. 2
      test-go/tests/isnegative_test/main.go
  91. 4
      test-go/tests/isnumeric_test/main.go
  92. 2
      test-go/tests/ispowerof2_test/main.go
  93. 4
      test-go/tests/isprime_test/main.go
  94. 2
      test-go/tests/isprintable_test/main.go
  95. 2
      test-go/tests/issorted_test/main.go
  96. 4
      test-go/tests/isupper_test/main.go
  97. 2
      test-go/tests/iterativefactorial_test/main.go
  98. 2
      test-go/tests/iterativepower_test/main.go
  99. 2
      test-go/tests/itoa_test/main.go
  100. 2
      test-go/tests/itoabase_test/main.go
  101. Some files were not shown because too many files changed in this diff diff.show_more

2
test-go/Dockerfile

@ -10,7 +10,7 @@ WORKDIR /piscine-go
RUN go mod init piscine-go
RUN go get github.com/01-edu/z01@v0.1.0
WORKDIR /public/go/tests
WORKDIR /public/test-go
COPY go.* ./
RUN go mod download
COPY lib lib

19
test-go/README.md

@ -5,25 +5,18 @@ To run the tests make sure the two repositories are right next to each other:
- github.com/01-edu/piscine-go
- github.com/01-edu/public
To test a function, run this command in this folder (`public/go/tests`):
To test an exercise, run this command in this folder (`public/test-go`):
```
go run github.com/01-edu/public/go/tests/func/isnegative_test
go run github.com/01-edu/public/test-go/tests/isnegative_test
```
and a program:
Relative paths work anywhere in `public/test-go`:
```
go run github.com/01-edu/public/go/tests/prog/printalphabet_test
```
Relative paths work anywhere in `public/go/tests`:
```
go run ./prog/printalphabet_test
cd prog
go run ./printalphabet_test
go run ../func/isnegative_test/
go run ./tests/printalphabet_test
cd tests
go run ./isnegative_test
```
No output means success.

2
test-go/entrypoint.sh

@ -44,7 +44,7 @@ if test "$ALLOWED_FUNCTIONS" && test "$FILE"; then
rc "$FILE" $ALLOWED_FUNCTIONS
fi
cd ~/public/go/tests
cd ~/public/test-go
# Compile and run test
if command -v "${EXERCISE}_test" >/dev/null 2>&1; then

4
test-go/go.mod

@ -1,7 +1,7 @@
module github.com/01-edu/public/go/tests
module github.com/01-edu/public/test-go
go 1.16
require student v0.0.0
replace student => ../../../piscine-go
replace student => ../../piscine-go

2
test-go/lib/base/base.go

@ -4,7 +4,7 @@ import (
"math/rand"
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func uniqueChar(s string) bool {

2
test-go/lib/lib.go

@ -372,7 +372,7 @@ func ChallengeMainStdin(exercise, input string, args ...string) {
return fmt.Sprintf("echo $?\n%d\n$", code)
}
student, studentCode := run(path.Join("student", exercise))
solution, solutionCode := run(path.Join("github.com/01-edu/public/go/tests/solutions", exercise+"_prog"))
solution, solutionCode := run(path.Join("github.com/01-edu/public/test-go/solutions", exercise+"_prog"))
if solutionCode == 0 {
if studentCode != 0 {
Fatalln("Your program fails (non-zero exit status) when it should not :\n" +

2
test-go/solutions/addprimesum_prog/main.go

@ -5,7 +5,7 @@ import (
"os"
"strconv"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib/is"
)
func main() {

2
test-go/solutions/cat_prog/main.go

@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/solutions/gcd_prog/main.go

@ -5,7 +5,7 @@ import (
"os"
"strconv"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/abort_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
// Receives 5 ints and returns the number in the middle

2
test-go/tests/activebits_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
// Function that return the number of active bits in the number passed as the argument

4
test-go/tests/addprimesum_test/main.go

@ -3,8 +3,8 @@ package main
import (
"strconv"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func main() {

2
test-go/tests/advancedsortwordarr_test/main.go

@ -7,7 +7,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func advancedSortWordArr(a []string, f func(a, b string) int) {

2
test-go/tests/alphacount_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func alphaCount(s string) (i int) {

2
test-go/tests/alphamirror_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

4
test-go/tests/any_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func any(f func(string) bool, a []string) bool {

2
test-go/tests/appendrange_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func appendRange(min, max int) []int {

2
test-go/tests/atoi_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func atoi(s string) int {

4
test-go/tests/atoibase_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/base"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/base"
)
func main() {

2
test-go/tests/balancedstring_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/basicatoi2_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func basicAtoi2(s string) int {

2
test-go/tests/basicatoi_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func basicAtoi(s string) int {

2
test-go/tests/basicjoin_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func basicJoin(elems []string) string {

2
test-go/tests/boolean_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/brackets_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/brainfuck_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/btreeapplybylevel_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/test-go/tests/correct"
)
func main() {

2
test-go/tests/btreeapplyinorder_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/test-go/tests/correct"
)
func main() {

2
test-go/tests/btreeapplypostorder_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/test-go/tests/correct"
)
func main() {

2
test-go/tests/btreeapplypreorder_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/test-go/tests/correct"
)
func main() {

5
test-go/tests/btreedeletenode_test/main.go

@ -3,9 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func parentListDelete(root *student.TreeNode) string {

5
test-go/tests/btreeinsertdata_test/main.go

@ -3,9 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func parentListInsert(root *student.TreeNode) string {

5
test-go/tests/btreeisbinary_test/main.go

@ -5,9 +5,8 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func BTreeMinStu(root *student.TreeNode) *student.TreeNode {

5
test-go/tests/btreelevelcount_test/main.go

@ -5,9 +5,8 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func errorMessage_level(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) {

5
test-go/tests/btreemax_test/main.go

@ -5,9 +5,8 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func errorMessage_max(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) {

5
test-go/tests/btreemin_test/main.go

@ -5,9 +5,8 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func errorMessage_min(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) {

5
test-go/tests/btreesearchitem_test/main.go

@ -5,9 +5,8 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func errorMessage_search(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode,

5
test-go/tests/btreetransplant_test/main.go

@ -5,9 +5,8 @@ import (
student "student"
"github.com/01-edu/public/go/tests/func/correct"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/tests/correct"
)
func parentListTransp(root *student.TreeNode) string {

2
test-go/tests/capitalize_test/main.go

@ -6,7 +6,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func capitalize(s string) string {

2
test-go/tests/cat_test/main.go

@ -5,7 +5,7 @@ import (
"os"
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/chunk_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func chunk(a []int, ch int) {

2
test-go/tests/cleanstr_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/collatzcountdown_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func collatzCountdown(start int) int {

2
test-go/tests/comcheck_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/compact_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func compact(slice *[]string) int {

2
test-go/tests/compare_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/concat_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/concatparams_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func concatParams(args []string) string {

4
test-go/tests/convertbase_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/base"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/base"
)
func convertNbrBase(n int, base string) string {

2
test-go/tests/correct/challenge.go

@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func FormatTree(root *TreeNode) string {

2
test-go/tests/costumeprofit_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strconv"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/countdown_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

4
test-go/tests/countif_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func countIf(f func(string) bool, a []string) int {

2
test-go/tests/displaya_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/displayalpham_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/displayalrevm_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/displayfile_test/main.go

@ -5,7 +5,7 @@ import (
"os"
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/displayfirstparam_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/displaylastparam_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/displayz_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/divmod_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/doop_test/main.go

@ -4,7 +4,7 @@ import (
"strconv"
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/doppelganger_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
type node struct {

2
test-go/tests/eightqueens_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
const size = 8

2
test-go/tests/enigma_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
// Helper function used in the test for checking the function Enigma()

2
test-go/tests/expandstr_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/fib_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func fib(n int) int {

2
test-go/tests/fibonacci_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func fibonacci(i int) int {

4
test-go/tests/findnextprime_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func findNextPrime(nb int) int {

4
test-go/tests/findprevprime_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func findPrevPrime(nb int) int {

2
test-go/tests/firstrune_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func firstRune(s string) rune {

2
test-go/tests/firstword_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/fixthemain_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/flags_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
type node struct {

2
test-go/tests/foldint_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func foldInt(f func(int, int) int, a []int, n int) {

2
test-go/tests/foreach_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func forEach(f func(int), a []int) {

2
test-go/tests/fprime_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strconv"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/game23_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func game23(a, b int) int {

2
test-go/tests/gcd_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strconv"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/grouping_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func validRegExp(n int) string {

2
test-go/tests/halfcontest_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func halfContest(h1, m1, h2, m2 int) int {

2
test-go/tests/hello_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/hiddenp_test/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/index_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func index(s string, substr string) int {

2
test-go/tests/inter_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strings"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/interestingnumber_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func isInteresting(n int) bool {

2
test-go/tests/isalpha_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func isAlpha(s string) bool {

2
test-go/tests/isanagram_test/main.go

@ -3,7 +3,7 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func isAnagram(s, t string) bool {

4
test-go/tests/islower_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func main() {

2
test-go/tests/isnegative_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func isNegative(n int) {

4
test-go/tests/isnumeric_test/main.go

@ -5,8 +5,8 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func main() {

2
test-go/tests/ispowerof2_test/main.go

@ -3,7 +3,7 @@ package main
import (
"strconv"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

4
test-go/tests/isprime_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func main() {

2
test-go/tests/isprintable_test/main.go

@ -6,7 +6,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func isPrintable(s string) bool {

2
test-go/tests/issorted_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func isSorted(f func(int, int) int, a []int) bool {

4
test-go/tests/isupper_test/main.go

@ -3,8 +3,8 @@ package main
import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/go/tests/lib/is"
"github.com/01-edu/public/test-go/lib"
"github.com/01-edu/public/test-go/lib/is"
)
func main() {

2
test-go/tests/iterativefactorial_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func iterativeFactorial(nb int) int {

2
test-go/tests/iterativepower_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func iterativePower(nb int, power int) int {

2
test-go/tests/itoa_test/main.go

@ -5,7 +5,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func main() {

2
test-go/tests/itoabase_test/main.go

@ -6,7 +6,7 @@ import (
student "student"
"github.com/01-edu/public/go/tests/lib"
"github.com/01-edu/public/test-go/lib"
)
func itoaBase(value, base int) string {

Some files were not shown because too many files changed in this diff diff.show_more

Loading…
Cancel
Save