Added UnitTest cases.
This commit is contained in:
@@ -41,8 +41,8 @@ class TestRightViewModel : ViewModel() {
|
||||
val calculationVariableList = ArrayList<CalculationVariableForTest>()
|
||||
|
||||
fun mapDeviceConstants(string: String) {
|
||||
Log.d(TAG, "mapDeviceConstants() called")
|
||||
// viewModelScope.launch {
|
||||
// Log.d(TAG, "mapDeviceConstants() called")
|
||||
// Log.d(TAG, "mapDeviceConstants() value -> $string")
|
||||
if (string.isNotEmpty()) {
|
||||
val listOfStrings = string.split(",")
|
||||
if (listOfStrings.size >= 4) {
|
||||
|
||||
Reference in New Issue
Block a user