stick-i / spel-validator

一个强大的 Java 参数校验包,基于 SpEL 实现,扩展自 jakarta.validation-api 包,用于简化参数校验,几乎支持所有场景下的参数校验。
https://spel-validator.sticki.cn/
Apache License 2.0
144 stars 33 forks source link

feat: 封装数值比较工具,以此工具比较 #32

Closed oddfar closed 2 months ago

oddfar commented 2 months ago

SpelMinTestBean.valueTypeTestCase中id(22)有点问题 其他用例均通过

[INFO ][ValueTypeTestBean][22][] - Start checking object: SpelMinTestBean.ValueTypeTestBean(id=22, condition=1, testValue=NaN, testInt=1, testDou=0.0, testInteger=null, testDouble=null, testString=null, testBigDecimal=null, testBigInteger=null)
[INFO ][ValueTypeTestBean][22][testValue] - Expected exception information: ignore
[ERROR][ValueTypeTestBean][22][testValue] - Excess field
[ERROR][ValueTypeTestBean][22][] - Verification end, number of failures: 1