Skip to content
Snippets Groups Projects
Commit 7df42b82 authored by Andrew E. Torda's avatar Andrew E. Torda
Browse files

Big renaming and go.mod organising. Now the tests seem to be broken.

parent 264f6426
No related branches found
No related tags found
No related merge requests found
File moved
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
package ackley_test package ackley_test
import ( import (
. "ackley"
"fmt" "fmt"
"io" "io"
"os" "os"
"testing" "testing"
. "ackley"
) )
// A gridsize has a min and max and the number of increments between // A gridsize has a min and max and the number of increments between
......
module ackley
go 1.16
File moved
...@@ -2,7 +2,8 @@ module ackley_mc ...@@ -2,7 +2,8 @@ module ackley_mc
go 1.16 go 1.16
require ( require mc_work v0.0.0-00010101000000-000000000000
github.com/wcharczuk/go-chart/v2 v2.1.0
gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20211227145643-dc5ef95d7dad replace ackley => ./ackley
)
replace mc_work => ./mc_work
...@@ -2,8 +2,8 @@ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF0 ...@@ -2,8 +2,8 @@ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF0
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/wcharczuk/go-chart/v2 v2.1.0 h1:tY2slqVQ6bN+yHSnDYwZebLQFkphK4WNrVwnt7CJZ2I= github.com/wcharczuk/go-chart/v2 v2.1.0 h1:tY2slqVQ6bN+yHSnDYwZebLQFkphK4WNrVwnt7CJZ2I=
github.com/wcharczuk/go-chart/v2 v2.1.0/go.mod h1:yx7MvAVNcP/kN9lKXM/NTce4au4DFN99j6i1OwDclNA= github.com/wcharczuk/go-chart/v2 v2.1.0/go.mod h1:yx7MvAVNcP/kN9lKXM/NTce4au4DFN99j6i1OwDclNA=
gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20211227145643-dc5ef95d7dad h1:IBCLghidSwZff0/3RuvTLDnHgK9SaZHZ/cXWSjimEt0= gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20220120103412-d663ebb46145 h1:02TpLZVj21Xg5OAKHE6vs+bJRlmyuQk4uphZXvDr/w0=
gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20211227145643-dc5ef95d7dad/go.mod h1:5CNHyqeidRypmIVTnQksGqnmP56Oshw1Zv1nlUezrpQ= gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20220120103412-d663ebb46145/go.mod h1:5CNHyqeidRypmIVTnQksGqnmP56Oshw1Zv1nlUezrpQ=
golang.org/x/image v0.0.0-20200927104501-e162460cd6b5 h1:QelT11PB4FXiDEXucrfNckHoFxwt8USGY1ajP1ZF5lM= golang.org/x/image v0.0.0-20200927104501-e162460cd6b5 h1:QelT11PB4FXiDEXucrfNckHoFxwt8USGY1ajP1ZF5lM=
golang.org/x/image v0.0.0-20200927104501-e162460cd6b5/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.0.0-20200927104501-e162460cd6b5/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
...@@ -11,7 +11,7 @@ package main ...@@ -11,7 +11,7 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"ackley_mc/ackwork" "mc_work"
) )
const ( const (
...@@ -20,7 +20,7 @@ const ( ...@@ -20,7 +20,7 @@ const (
) )
func main() { func main() {
if err := ackwork.MyMain (); err != nil { if err := mc_work.MyMain (); err != nil {
fmt.Fprintln (os.Stderr, err) fmt.Fprintln (os.Stderr, err)
os.Exit (exitFailure) os.Exit (exitFailure)
} }
......
File moved
// Aug 2021 // Aug 2021
package ackwork package mc_work
import ( import (
"bufio" "bufio"
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"os" "os"
"sync" "sync"
"ackley_mc/ackwork/ackley" "ackley"
) )
const ( const (
......
package ackwork package mc_work
var SetSuffix = setSuffix var SetSuffix = setSuffix
var RemoveQuotes = removeQuotes var RemoveQuotes = removeQuotes
module mc_work
go 1.16
require (
ackley v0.0.0-00010101000000-000000000000
github.com/wcharczuk/go-chart/v2 v2.1.0
gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20220120103412-d663ebb46145
)
replace ackley => ../ackley
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/wcharczuk/go-chart/v2 v2.1.0 h1:tY2slqVQ6bN+yHSnDYwZebLQFkphK4WNrVwnt7CJZ2I=
github.com/wcharczuk/go-chart/v2 v2.1.0/go.mod h1:yx7MvAVNcP/kN9lKXM/NTce4au4DFN99j6i1OwDclNA=
gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20220120103412-d663ebb46145 h1:02TpLZVj21Xg5OAKHE6vs+bJRlmyuQk4uphZXvDr/w0=
gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20220120103412-d663ebb46145/go.mod h1:5CNHyqeidRypmIVTnQksGqnmP56Oshw1Zv1nlUezrpQ=
golang.org/x/image v0.0.0-20200927104501-e162460cd6b5 h1:QelT11PB4FXiDEXucrfNckHoFxwt8USGY1ajP1ZF5lM=
golang.org/x/image v0.0.0-20200927104501-e162460cd6b5/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
// Aug 2021 // Aug 2021
package ackwork package mc_work
import ( import (
"ackley_mc/ackwork/ackley"
"flag" "flag"
"fmt" "fmt"
"io" "io"
"os" "os"
"ackley"
) )
type mcPrm struct { type mcPrm struct {
......
// Aug 2021 // Aug 2021
package ackwork package mc_work
import ( import (
"fmt" "fmt"
...@@ -113,7 +113,7 @@ func TestSetSuffix(t *testing.T) { ...@@ -113,7 +113,7 @@ func TestSetSuffix(t *testing.T) {
} }
for _, s := range tdata { for _, s := range tdata {
if tmp, err := SetSuffix(s.in, s.suffix); err != nil { if tmp, err := SetSuffix(s.in, s.suffix); err == nil {
t.Fatal("setSuffix error handling", s) t.Fatal("setSuffix error handling", s)
} else { } else {
if tmp != s.want { if tmp != s.want {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// define the GetTicks function. go-chart then calls this function, at // define the GetTicks function. go-chart then calls this function, at
// apparently the right place, and the tick marks come out nicely. // apparently the right place, and the tick marks come out nicely.
package ackwork package mc_work
import ( import (
"fmt" "fmt"
......
File moved
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// These are stored in a map along with string values. These are then converted // These are stored in a map along with string values. These are then converted
// to floats or ints and put into a structure or variable. // to floats or ints and put into a structure or variable.
package ackwork package mc_work
import ( import (
"bufio" "bufio"
......
// a utility // a utility
package ackwork package mc_work
import ( import (
"errors" "errors"
......
// Put something here so everything looks neat on recursive test.
package main
import (
"testing"
)
func TestNot (t *testing.T) {
if false {
t.Fatalf ("banana")
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment