feat: 支持勾选部分档口入库码匹配 (#235)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package web
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestParseInnerCodeIDs_过滤无效并保持首次选择顺序(t *testing.T) {
|
||||
got := parseInnerCodeIDs([]string{" 8 ", "bad", "0", "8", "3"})
|
||||
if len(got) != 2 || got[0] != 8 || got[1] != 3 {
|
||||
t.Fatalf("解析结果不正确: %v", got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user