Skip to content

Conversation

@VidarHUN
Copy link
Contributor

@VidarHUN VidarHUN commented Mar 1, 2023

No description provided.

@VidarHUN VidarHUN requested review from afranko and rg0now March 20, 2023 11:10
func TestArea(t *testing.T) {
switch "{{index . "shape"}}"{
case "Circle":
assert.Equal(t, area(r, a, b, h), 36.32)
Copy link
Member

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 {
Copy link
Member

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"
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants