mirror of
https://github.com/Aviortheking/CA-Mad-Rental.git
synced 2025-08-11 20:11:58 +00:00
Initial Commit
This commit is contained in:
15
app/src/main/kotlin/CA_Contest/App.kt
Normal file
15
app/src/main/kotlin/CA_Contest/App.kt
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* This Kotlin source file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
package CA_Contest
|
||||
|
||||
class App {
|
||||
val greeting: String
|
||||
get() {
|
||||
return "Hello World!"
|
||||
}
|
||||
}
|
||||
|
||||
fun main() {
|
||||
println(App().greeting)
|
||||
}
|
14
app/src/test/kotlin/CA_Contest/AppTest.kt
Normal file
14
app/src/test/kotlin/CA_Contest/AppTest.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* This Kotlin source file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
package CA_Contest
|
||||
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertNotNull
|
||||
|
||||
class AppTest {
|
||||
@Test fun testAppHasAGreeting() {
|
||||
val classUnderTest = App()
|
||||
assertNotNull(classUnderTest.greeting, "app should have a greeting")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user