mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
added support for limit set to zero or negative as no limit
This commit is contained in:
@@ -504,6 +504,20 @@ public class HSQLDBCacheUtilsTests {
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLimitZero() {
|
||||
|
||||
ArbitraryResourceData data = new ArbitraryResourceData();
|
||||
data.name = "Joe";
|
||||
|
||||
filterListByMap(
|
||||
List.of(data),
|
||||
NAME_LEVEL,
|
||||
new HashMap<>(Map.of(LIMIT, 0)),
|
||||
1
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOffset() {
|
||||
|
||||
|
Reference in New Issue
Block a user