Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dvt32/be078cbffad72d6a700be12537868137 to your computer and use it in GitHub Desktop.
Save dvt32/be078cbffad72d6a700be12537868137 to your computer and use it in GitHub Desktop.
class MyOwnClass {
// Probably should be avoided in most cases, but nice to have the flexibility
val `my strange field name` = mutableListOf("a", "b", "c")
fun `some method`() { }
fun anotherMethod() {
`my strange field name`[1] = "d"
`some method`()
}
// Can be very useful when writing JUnit tests
fun `someMethod() SHOULD do something WHEN some condition`() {
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment