Last active
September 2, 2019 15:59
-
-
Save JoseAlcerreca/98593f95b83dc6f86c8639a7455a0682 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2019 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
fun isLiveDataEmitting() { | |
viewModel.setNewValue("foo") | |
assertEquals(viewModel.liveData1.value, "foo") // Passes | |
assertEquals(viewModel.liveData2.value, "FOO") // Fails! | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment