Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/get.kt Secret
Created Oct 18, 2017

What would you like to do?
fun getBufferoosRetrievesData() {
val cachedBufferoos = BufferooFactory.makeCachedBufferooList(5)
cachedBufferoos.forEach {
bufferoosDatabase.cachedBufferooDao().insertBufferoo(it) }
val retrievedBufferoos = bufferoosDatabase.cachedBufferooDao().getBufferoos()
assert(retrievedBufferoos == cachedBufferoos.sortedWith(compareBy({ }, { })))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.