If you structure you code into small functions: ``...
# announcements
o
If you structure you code into small functions:
Copy code
fun fileManipulationCode(file: File) {
   when (file.deleteRecursively()) {
      true -> reportSuccess()
      false -> doSomethingElse()
   }
}
then you can test
doSomethingElse
separately.
🤔 1
s
but why the when 🤔
o
¯\_(ツ)_/¯
😂 7
r
it is shorter