You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Test
funemptyArrayInTableTest(){
@Serializable
data classEmbeddedData(valdata:String = "embedded data")
@Serializable
data classEmptyListData(valcontent:List<EmbeddedData> = listOf() )
assertEncodedEquals(
value =EmptyListData(),
expectedToml =""
)
}
Throws:
List is empty.
java.util.NoSuchElementException: List is empty.
at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:214)
at com.akuleshov7.ktoml.tree.nodes.TomlTable.write(TomlTable.kt:83)
The text was updated successfully, but these errors were encountered:
thomasgalvin
changed the title
TomlTable.write() throws NoSuchElementException is children is empty
TomlTable.write() throws NoSuchElementException if children is empty
Jun 2, 2023
Throws:
The text was updated successfully, but these errors were encountered: