Commit 41bfaf8c authored by stancakapost's avatar stancakapost
Browse files

using match instead of ==

parent d9340eee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ module Sem_050402_actual_parameters_176 {
	}

    function f_test (integer p_val1, integer p_val2 := 20, integer p_val3, integer p_val4 := 40, integer p_val5) {
        if (p_val1 == 1 and p_val2 == 20 and p_val3 == 3 and p_val4 == 40 and p_val5 == 5) { setverdict(pass); }
        if ( match(p_val1, 1) and match(p_val2, 20) and match(p_val3, 3) and match(p_val4, 40) and match(p_val5, 5)) { setverdict(pass); }
        else { setverdict(fail); }
    }

+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ module Sem_050402_actual_parameters_179 {
	}

    function f_test (integer p_val1, integer p_val2 := 20, integer p_val3 := 30, integer p_val4 := 40) {
        if (p_val1 == 1 and p_val2 == 20 and p_val3 == 30 and p_val4 == 40) { setverdict(pass); }
        if (match(p_val1, 1) and match(p_val2, 20) and match(p_val3, 30) and match(p_val4, 40)) { setverdict(pass); }
        else { setverdict(fail); }
    }

+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ module Sem_050402_actual_parameters_180 {
	}

    function f_test (integer p_val1, charstring p_val2, integer p_val3) {
        if (p_val1 == 1 and p_val2 == "test" and p_val3 == 3) { setverdict(pass); }
        if ( match(p_val1, 1) and match(p_val2, "test") and match(p_val3, 3)) { setverdict(pass); }
        else { setverdict(fail); }
    }

+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ module Sem_050402_actual_parameters_181 {
	}

    function f_test (integer p_val1, charstring p_val2, integer p_val3) {
        if (p_val1 == 1 and p_val2 == "test" and p_val3 == 3) { setverdict(pass); }
        if ( match(p_val1, 1) and match(p_val2, "test") and match(p_val3, 3)) { setverdict(pass); }
        else { setverdict(fail); }
    }

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ module Sem_050402_actual_parameters_182 {
	}

    function f_test (integer p_val1 := 10, charstring p_val2, integer p_val3) {
        if (p_val1 == 10 and p_val2 == "test" and p_val3 == 3) { setverdict(pass); }
        if ( match(p_val1, 10) and match(p_val2, "test") and match(p_val3, 3)) { setverdict(pass); }
        else { setverdict(fail); }
    }

Loading