Módulo discusión:Math/tests
Han fallado 3 pruebas.
test_max:
Código | Esperado | Resultado | |
---|---|---|---|
{{#Invoke:math|max}} | |||
{{#Invoke:math|max|5|6|9}} | 9 | 9 |
test_min:
Código | Esperado | Resultado | |
---|---|---|---|
{{#Invoke:math|min}} | |||
{{#Invoke:math|min|1|2|3}} | 1 | 1 |
test_order:
Código | Esperado | Resultado | |
---|---|---|---|
{{#Invoke:math|order|2}} | 0 | 0 | |
{{#Invoke:math|order|x = 5}} | 0 | 0 | |
{{#Invoke:math|order|letra}} | <strong class="error"><small>Error de formato: El orden de magnitud debe ser numérico</small></strong> | <strong class="error"><small>Error de formato: El orden de magnitud debe ser numérico</small></strong> |
test_precison:
Código | Esperado | Resultado | |
---|---|---|---|
{{#Invoke:math|precision|1.9856}} | 4 | 4 | |
{{#Invoke:math|precision|x = 1.9888}} | 4 | 4 | |
{{#Invoke:math|precision|letra}} | <strong class="error"><small>Error de formato: El valor de precisión ha de ser numérico</small></strong> | <strong class="error"><small>Error de formato: El valor de precisión ha de ser numérico</small></strong> |
test_precison_format:
Código | Esperado | Resultado | |
---|---|---|---|
{{#Invoke:math|precision_format|10|2}} | 10,00 | 10,00 |
test_random:
Código | Esperado | Resultado | |
---|---|---|---|
{{#Invoke:math|random}} | 0.00047147460303804 | 0.22198432740848 | |
{{#Invoke:math|random|10}} | 8 | 6 | |
{{#Invoke:math|random|1|2}} | 2 | 1 |
test_round:
Código | Esperado | Resultado | |
---|---|---|---|
{{#Invoke:math|round|1.99999|2}} | 2 | 2 | |
{{#Invoke:math|round|value = 2.99999|precision = 2}} | 3 | 3 |