ff
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package flxg
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMapRiskCodeToLevel(t *testing.T) {
|
||||
tests := []struct {
|
||||
riskCode string
|
||||
want string
|
||||
}{
|
||||
{"1000000000010000100100000", "A,B,D4,E"},
|
||||
{"0000000000000000000000001", "0"},
|
||||
{"1001000000010000100100000", "A,B,D4,E"},
|
||||
{"0000000000000000100000000", "D4"},
|
||||
{"0000000000000000010000000", "D2"},
|
||||
{"0000000000000000001000000", "D5"},
|
||||
{"0000000000000000000100000", "E"},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
got := mapRiskCodeToLevel(tt.riskCode)
|
||||
if got != tt.want {
|
||||
t.Errorf("mapRiskCodeToLevel(%q) = %q, want %q", tt.riskCode, got, tt.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user