"837. New 21 Game" medium, no working solution yet
This commit is contained in:
12
837-new-21-game_test.go
Normal file
12
837-new-21-game_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNew21Game(t *testing.T) {
|
||||
// assert.Equal(t, 1.0, New21Game(10, 1, 10))
|
||||
assert.Equal(t, 0.6, New21Game(6, 1, 10))
|
||||
assert.Equal(t, 0.73278, New21Game(21, 17, 10))
|
||||
}
|
||||
Reference in New Issue
Block a user