mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
another simple test
This commit is contained in:
parent
dc4acde3db
commit
fb03652ecd
@ -29,6 +29,10 @@ import static org.hamcrest.Matchers.*;
|
||||
*/
|
||||
public class SizeValueTests {
|
||||
|
||||
@Test public void testActual() {
|
||||
assertThat(new SizeValue(4, SizeUnit.GB).bytes(), equalTo(4294967296l));
|
||||
}
|
||||
|
||||
@Test public void testSimple() {
|
||||
assertThat(SizeUnit.BYTES.toBytes(10), is(new SizeValue(10, SizeUnit.BYTES).bytes()));
|
||||
assertThat(SizeUnit.KB.toKB(10), is(new SizeValue(10, SizeUnit.KB).kb()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user