Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Basics: Viewmodel and State with Compose #227

Open
tanvir55539 opened this issue Dec 5, 2024 · 0 comments
Open

Android Basics: Viewmodel and State with Compose #227

tanvir55539 opened this issue Dec 5, 2024 · 0 comments

Comments

@tanvir55539
Copy link

Undefined Function: getUnscrambledWord()

Description

The test gameViewModel_CorrectWordGuessed_ScoreUpdatedAndErrorFlagUnset() references a function named getUnscrambledWord(). However, this function is not defined or imported in the codebase, causing a compilation error.

Steps to Reproduce

  1. Open the file containing the test: GameViewModelTest.
  2. Locate the test function: gameViewModel_CorrectWordGuessed_ScoreUpdatedAndErrorFlagUnset.
  3. Observe the usage of the undefined function getUnscrambledWord().

Expected Behavior

The getUnscrambledWord() function should either:

  • Be defined within the test file or another relevant file.
  • Be imported if it exists elsewhere in the codebase.

This would allow the test to compile and run successfully.

Actual Behavior

The function getUnscrambledWord() is not defined or imported, resulting in a compilation error.

Possible Solutions

  • Define the getUnscrambledWord() function within the test file or in a utility file accessible to the test.
  • Import the function if it exists elsewhere in the codebase.

Additional Context

This issue prevents the test from compiling, making it impossible to verify the functionality of the code under test. Please advise on the intended location or definition of getUnscrambledWord().

Labels

Suggesting labels: bug, testing, help wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant