|
|
|
|
@ -89,7 +89,7 @@ Por ejemplo, un emoji de "pulgar arriba" puede indicar que una sección de códi
|
|
|
|
|
|
|
|
|
|
#### EJEMPLOS
|
|
|
|
|
|
|
|
|
|
<span style="color:yellow">ToDo</span>
|
|
|
|
|
<span style="color:gray">ToDo</span>
|
|
|
|
|
```python
|
|
|
|
|
// 📋 TODO: Implementar la función Multiply para realizar una multiplicación de dos números enteros.
|
|
|
|
|
func Multiply(a, b int) int {
|
|
|
|
|
@ -97,7 +97,7 @@ func Multiply(a, b int) int {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
<span style="color:yellow">Bug</span>
|
|
|
|
|
<span style="color:gray">Bug</span>
|
|
|
|
|
```python
|
|
|
|
|
// 🐞 BUG: Esta función no maneja correctamente los casos de división por cero.
|
|
|
|
|
func Divide(a, b int) int {
|
|
|
|
|
@ -108,7 +108,7 @@ func Divide(a, b int) int {
|
|
|
|
|
return a / b
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
<span style="color:yellow">Tests</span>
|
|
|
|
|
<span style="color:gray">Tests</span>
|
|
|
|
|
```python
|
|
|
|
|
// 🧪 TESTS: Agregar pruebas unitarias para la función IsEven para verificar su correcto funcionamiento.
|
|
|
|
|
func IsEven(n int) bool {
|
|
|
|
|
@ -116,7 +116,7 @@ func IsEven(n int) bool {
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<span style="color:yellow">Desaprobado</span>
|
|
|
|
|
<span style="color:gray">Desaprobado</span>
|
|
|
|
|
```python
|
|
|
|
|
// 🚫 DEPRECATED: Esta función está obsoleta y no debe utilizarse. Se recomienda utilizar la función NewSum en su lugar.
|
|
|
|
|
func OldSum(a, b int) int {
|
|
|
|
|
|