Skip to content

Commit

Permalink
add Reto mouredev#26: TESTING
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariopolonia0 authored Jul 1, 2023
1 parent f1d3406 commit ca258b1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Retos/Reto #26 - TESTING [Media]/kotlin/Mariopolonia0.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package EjercicioKotlin.Mouredev

import java.lang.Exception

fun main(){
Testing()
}

class Testing{

init {
testingOne()
testingTwo()
testingThree()
}

//Testing con los valores negativos
private fun testingOne(){
try {
Reto12(-9,-2015)
println("paso el testing")
}catch (e:Exception){
println("no paso el testing")
}
}

//Testing con los valores fuera de rango
private fun testingTwo(){
try {
Reto12(50,2015)
println("paso el testing")
}catch (e:Exception){
println("no paso el testing")
}
}

//Testing con los valores mu grande
private fun testingThree(){
try {
Reto12(20595059,20595959)
println("paso el testing")
}catch (e:Exception){
println("no paso el testing")
}
}
}

0 comments on commit ca258b1

Please sign in to comment.