Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 32... Línea 32...
32
     *
32
     *
33
     * @dataProvider lesson_unformat_dataprovider
33
     * @dataProvider lesson_unformat_dataprovider
34
     * @param $decsep
34
     * @param $decsep
35
     * @param $tests
35
     * @param $tests
36
     */
36
     */
37
    public function test_lesson_unformat_numeric_value($decsep, $tests) {
37
    public function test_lesson_unformat_numeric_value($decsep, $tests): void {
38
        $this->define_local_decimal_separator($decsep);
38
        $this->define_local_decimal_separator($decsep);
Línea 39... Línea 39...
39
 
39
 
40
        foreach ($tests as $test) {
40
        foreach ($tests as $test) {
41
            $this->assertEquals($test[1], helper::lesson_unformat_numeric_value($test[0]));
41
            $this->assertEquals($test[1], helper::lesson_unformat_numeric_value($test[0]));
Línea 47... Línea 47...
47
     *
47
     *
48
     * @dataProvider lesson_format_dataprovider
48
     * @dataProvider lesson_format_dataprovider
49
     * @param $decsep
49
     * @param $decsep
50
     * @param $tests
50
     * @param $tests
51
     */
51
     */
52
    public function test_lesson_format_numeric_value($decsep, $tests) {
52
    public function test_lesson_format_numeric_value($decsep, $tests): void {
53
        $this->define_local_decimal_separator($decsep);
53
        $this->define_local_decimal_separator($decsep);
Línea 54... Línea 54...
54
 
54
 
55
        foreach ($tests as $test) {
55
        foreach ($tests as $test) {
56
            $this->assertEquals($test[1], helper::lesson_format_numeric_value($test[0]));
56
            $this->assertEquals($test[1], helper::lesson_format_numeric_value($test[0]));