Skip to content

Instantly share code, notes, and snippets.

@anna-is-cute
Created November 10, 2015 21:43
Show Gist options
  • Save anna-is-cute/6b3c2d77b1328b2f63a0 to your computer and use it in GitHub Desktop.
Save anna-is-cute/6b3c2d77b1328b2f63a0 to your computer and use it in GitHub Desktop.
assertNull(mapOf<String, String>().getRaw(null)) // fails, kotlin.Unit instead of null
assertEquals(Unit, mapOf<String, String>().getRaw(null)) // passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment