Skip to content

Commit

Permalink
Task instance Go/163 with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swe-bench committed Jun 12, 2024
1 parent 38c5b6f commit 84e0c5f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mymain_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package main

import (
"testing"
"github.com/stretchr/testify/assert"
)

func TestGenerateIntegers(t *testing.T) {
assert := assert.New(t)
assert.Equal([]int{2, 4, 6, 8}, GenerateIntegers(2, 10))
assert.Equal([]int{2, 4, 6, 8}, GenerateIntegers(10, 2))
assert.Equal([]int{2, 4, 6, 8}, GenerateIntegers(132, 2))
assert.Equal([]int{}, GenerateIntegers(17, 89))
}

0 comments on commit 84e0c5f

Please sign in to comment.