mirror of
https://github.com/lightbend/config.git
synced 2025-01-25 03:30:10 +08:00
Fix ConfigMemorySizeTest.scala indentation
This commit is contained in:
parent
a73fe1f1e9
commit
db5e95c457
@ -9,17 +9,17 @@ import com.typesafe.config.ConfigMemorySize
|
|||||||
|
|
||||||
class ConfigMemorySizeTest extends TestUtils {
|
class ConfigMemorySizeTest extends TestUtils {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
def testEquals() {
|
def testEquals() {
|
||||||
assertTrue("Equal ConfigMemorySize are equal",
|
assertTrue("Equal ConfigMemorySize are equal",
|
||||||
ConfigMemorySize.ofBytes(10).equals(ConfigMemorySize.ofBytes(10)))
|
ConfigMemorySize.ofBytes(10).equals(ConfigMemorySize.ofBytes(10)))
|
||||||
assertTrue("Different ConfigMemorySize are not equal",
|
assertTrue("Different ConfigMemorySize are not equal",
|
||||||
!ConfigMemorySize.ofBytes(10).equals(ConfigMemorySize.ofBytes(11)))
|
!ConfigMemorySize.ofBytes(10).equals(ConfigMemorySize.ofBytes(11)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
def testToUnits() {
|
def testToUnits() {
|
||||||
val kilobyte = ConfigMemorySize.ofBytes(1024)
|
val kilobyte = ConfigMemorySize.ofBytes(1024)
|
||||||
assertEquals(1024, kilobyte.toBytes)
|
assertEquals(1024, kilobyte.toBytes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user