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.
67 lines
1.1 KiB
67 lines
1.1 KiB
package tron
|
|
|
|
import (
|
|
"math/big"
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestAmountBigInt(t *testing.T) {
|
|
type args struct {
|
|
a int
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
want *big.Int
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := AmountBigInt(tt.args.a); !reflect.DeepEqual(got, tt.want) {
|
|
t.Errorf("AmountBigInt() = %v, want %v", got, tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestAmountInt(t *testing.T) {
|
|
type args struct {
|
|
a int
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
want int64
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := AmountInt(tt.args.a); got != tt.want {
|
|
t.Errorf("AmountInt() = %v, want %v", got, tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestFeeLimitInt(t *testing.T) {
|
|
type args struct {
|
|
a int
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
want int64
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := FeeLimitInt(tt.args.a); got != tt.want {
|
|
t.Errorf("FeeLimitInt() = %v, want %v", got, tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|