解决当权限码为null时可能带来的空指针问题

This commit is contained in:
click33
2022-08-08 15:05:45 +08:00
parent c4c88105c0
commit a2ec360aef
3 changed files with 16 additions and 4 deletions

View File

@@ -71,6 +71,9 @@ public class SaFoxUtilTest {
Assertions.assertTrue(SaFoxUtil.vagueMatch("hello*", "hello world"));
Assertions.assertFalse(SaFoxUtil.vagueMatch("hello*", "he"));
Assertions.assertTrue(SaFoxUtil.vagueMatch("hello*", "hello*"));
Assertions.assertTrue(SaFoxUtil.vagueMatch(null, null));
Assertions.assertFalse(SaFoxUtil.vagueMatch(null, "hello"));
Assertions.assertFalse(SaFoxUtil.vagueMatch("hello*", null));
}
@Test