diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-12 20:57:17 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-12 20:57:17 +0100 |
| commit | b333b06772c89d96aacb5490d6a219fba7c09cc6 (patch) | |
| tree | 211df60083a5946baa2ed61d33d8121b7e251b06 /llama.cpp/examples/llama.android/lib/src/androidTest/java/android | |
| download | llmnpc-b333b06772c89d96aacb5490d6a219fba7c09cc6.tar.gz | |
Engage!
Diffstat (limited to 'llama.cpp/examples/llama.android/lib/src/androidTest/java/android')
| -rw-r--r-- | llama.cpp/examples/llama.android/lib/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llama.cpp/examples/llama.android/lib/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt b/llama.cpp/examples/llama.android/lib/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..05d6ab5 --- /dev/null +++ b/llama.cpp/examples/llama.android/lib/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | package android.llama.cpp | ||
| 2 | |||
| 3 | import androidx.test.platform.app.InstrumentationRegistry | ||
| 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
| 5 | |||
| 6 | import org.junit.Test | ||
| 7 | import org.junit.runner.RunWith | ||
| 8 | |||
| 9 | import org.junit.Assert.* | ||
| 10 | |||
| 11 | /** | ||
| 12 | * Instrumented test, which will execute on an Android device. | ||
| 13 | * | ||
| 14 | * See [testing documentation](http://d.android.com/tools/testing). | ||
| 15 | */ | ||
| 16 | @RunWith(AndroidJUnit4::class) | ||
| 17 | class ExampleInstrumentedTest { | ||
| 18 | @Test | ||
| 19 | fun useAppContext() { | ||
| 20 | // Context of the app under test. | ||
| 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
| 22 | assertEquals("android.llama.cpp.test", appContext.packageName) | ||
| 23 | } | ||
| 24 | } | ||
