You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
373 B
14 lines
373 B
package godecimal
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestCalculation(t *testing.T) {
|
|
t.Log("加:", Float64Add(10, 3), reflect.TypeOf(Float64Add(10, 3)))
|
|
t.Log("减", Float64Sub(10, 3), reflect.TypeOf(Float64Sub(10, 3)))
|
|
t.Log("乘:", Float64Mul(10, 3), reflect.TypeOf(Float64Mul(10, 3)))
|
|
t.Log("除:", Float64Quo(10, 3), reflect.TypeOf(Float64Quo(10, 3)))
|
|
}
|