-
Notifications
You must be signed in to change notification settings - Fork 13
Primitives #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Primitives #3
Conversation
| func TestArea(t *testing.T) { | ||
| switch "{{index . "shape"}}"{ | ||
| case "Circle": | ||
| assert.Equal(t, area(r, a, b, h), 36.32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please template
| //go:generate go run ../../exercises-cli.go -student-id=$STUDENT_ID generate | ||
|
|
||
| // area will give back the area of the given shape. | ||
| func area(r, a, b, h float64) float64 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls template
| @@ -0,0 +1,20 @@ | |||
| name: "strings" | |||
| input: | |||
| - cidr: "192.168.1.1/24" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls make this a valid CIDR prefix.
5e98f94 to
4f6ccc8
Compare
No description provided.