data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv
1: b'%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:13: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:21: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:29: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:37: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:45: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:53: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:61: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:69: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:77: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:85: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:93: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:101: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:109: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:117: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:125: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:133: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:141: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:149: Unsupported: Ignoring delay on this delayed statement.\n        #1;\n        ^\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:14: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'b0) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:15: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 1: Expected total is %b, actual total is %b", 4\'b0, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:22: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d1) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:23: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 2: Expected total is %b, actual total is %b", 4\'d1, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:30: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d0) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:31: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 3: Expected total is %b, actual total is %b", 4\'d0, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:38: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d9) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:39: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 4: Expected total is %b, actual total is %b", 4\'d9, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:46: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d0) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:47: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 5: Expected total is %b, actual total is %b", 4\'d0, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:54: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d3) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:55: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 6: Expected total is %b, actual total is %b", 4\'d3, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:62: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d0) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:63: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 7: Expected total is %b, actual total is %b", 4\'d0, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:70: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d7) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:71: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 8: Expected total is %b, actual total is %b", 4\'d7, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:78: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d0) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:79: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 9: Expected total is %b, actual total is %b", 4\'d0, tb_scorehand.dut.total);\n                                                                                                 ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:86: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d2) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:87: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 10: Expected total is %b, actual total is %b", 4\'d2, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:94: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d8) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:95: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 11: Expected total is %b, actual total is %b", 4\'d8, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:102: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d6) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:103: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 12: Expected total is %b, actual total is %b", 4\'d6, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:110: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d0) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:111: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 13: Expected total is %b, actual total is %b", 4\'d0, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:118: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d1) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:119: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 14: Expected total is %b, actual total is %b", 4\'d1, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:126: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'dx) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:127: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 15: Expected total is %b, actual total is %b", 4\'dx, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:134: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'dx) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:135: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 16: Expected total is %b, actual total is %b", 4\'dx, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:142: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'dx) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:143: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 17: Expected total is %b, actual total is %b", 4\'dx, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:150: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n        if (tb_scorehand.dut.total !== 4\'d0) begin\n                             ^~~~~\n%Error: data/full_repos/permissive/426864978/lab1/task5/tb_scorehand.sv:151: Can\'t find definition of \'total\' in dotted variable: \'tb_scorehand.dut.total\'\n            $display("ERROR 18: Expected total is %b, actual total is %b", 4\'d0, tb_scorehand.dut.total);\n                                                                                                  ^~~~~\n%Error: Exiting due to 36 error(s), 18 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module tb_scorehand();

    logic [3:0] card1, card2, card3, total;
    logic err;

    scorehand dut(.*);

    initial begin
        err = 1'b0;


        card1 = 4'd0; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'b0) begin
            $display("ERROR 1: Expected total is %b, actual total is %b", 4'b0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd1; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd1) begin
            $display("ERROR 2: Expected total is %b, actual total is %b", 4'd1, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd10; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 3: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd9; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd9) begin
            $display("ERROR 4: Expected total is %b, actual total is %b", 4'd9, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd11; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 5: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd3; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd3) begin
            $display("ERROR 6: Expected total is %b, actual total is %b", 4'd3, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd12; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 7: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd0; card2 = 4'd7; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd7) begin
            $display("ERROR 8: Expected total is %b, actual total is %b", 4'd7, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd0; card2 = 4'd0; card3 = 4'd13;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 9: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd2; card2 = 4'd3; card3 = 4'd7;
        #1;
        if (tb_scorehand.dut.total !== 4'd2) begin
            $display("ERROR 10: Expected total is %b, actual total is %b", 4'd2, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd9; card2 = 4'd9; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd8) begin
            $display("ERROR 11: Expected total is %b, actual total is %b", 4'd8, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd8; card2 = 4'd8; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd6) begin
            $display("ERROR 12: Expected total is %b, actual total is %b", 4'd6, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd13; card2 = 4'd13; card3 = 4'd13;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 13: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd2; card2 = 4'd10; card3 = 4'd9;
        #1;
        if (tb_scorehand.dut.total !== 4'd1) begin
            $display("ERROR 14: Expected total is %b, actual total is %b", 4'd1, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'dx; card2 = 4'dx; card3 = 4'dx;
        #1;
        if (tb_scorehand.dut.total !== 4'dx) begin
            $display("ERROR 15: Expected total is %b, actual total is %b", 4'dx, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'dx; card2 = 4'd2; card3 = 4'dx;
        #1;
        if (tb_scorehand.dut.total !== 4'dx) begin
            $display("ERROR 16: Expected total is %b, actual total is %b", 4'dx, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'dx; card2 = 4'd2; card3 = 4'd5;
        #1;
        if (tb_scorehand.dut.total !== 4'dx) begin
            $display("ERROR 17: Expected total is %b, actual total is %b", 4'dx, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd5; card2 = 4'd5; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 18: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end

        if (~err) begin
            $display("SUCCESS: All tests passed.");
        end
        $stop;
    end
						
endmodule
module tb_scorehand();


    logic [3:0] card1, card2, card3, total;
    logic err;

    scorehand dut(.*);

    initial begin
        err = 1'b0;


        card1 = 4'd0; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'b0) begin
            $display("ERROR 1: Expected total is %b, actual total is %b", 4'b0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd1; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd1) begin
            $display("ERROR 2: Expected total is %b, actual total is %b", 4'd1, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd10; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 3: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd9; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd9) begin
            $display("ERROR 4: Expected total is %b, actual total is %b", 4'd9, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd11; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 5: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd3; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd3) begin
            $display("ERROR 6: Expected total is %b, actual total is %b", 4'd3, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd12; card2 = 4'd0; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 7: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd0; card2 = 4'd7; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd7) begin
            $display("ERROR 8: Expected total is %b, actual total is %b", 4'd7, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd0; card2 = 4'd0; card3 = 4'd13;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 9: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd2; card2 = 4'd3; card3 = 4'd7;
        #1;
        if (tb_scorehand.dut.total !== 4'd2) begin
            $display("ERROR 10: Expected total is %b, actual total is %b", 4'd2, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd9; card2 = 4'd9; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd8) begin
            $display("ERROR 11: Expected total is %b, actual total is %b", 4'd8, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd8; card2 = 4'd8; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd6) begin
            $display("ERROR 12: Expected total is %b, actual total is %b", 4'd6, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd13; card2 = 4'd13; card3 = 4'd13;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 13: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd2; card2 = 4'd10; card3 = 4'd9;
        #1;
        if (tb_scorehand.dut.total !== 4'd1) begin
            $display("ERROR 14: Expected total is %b, actual total is %b", 4'd1, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'dx; card2 = 4'dx; card3 = 4'dx;
        #1;
        if (tb_scorehand.dut.total !== 4'dx) begin
            $display("ERROR 15: Expected total is %b, actual total is %b", 4'dx, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'dx; card2 = 4'd2; card3 = 4'dx;
        #1;
        if (tb_scorehand.dut.total !== 4'dx) begin
            $display("ERROR 16: Expected total is %b, actual total is %b", 4'dx, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'dx; card2 = 4'd2; card3 = 4'd5;
        #1;
        if (tb_scorehand.dut.total !== 4'dx) begin
            $display("ERROR 17: Expected total is %b, actual total is %b", 4'dx, tb_scorehand.dut.total);
            err = 1'b1;
        end


        card1 = 4'd5; card2 = 4'd5; card3 = 4'd0;
        #1;
        if (tb_scorehand.dut.total !== 4'd0) begin
            $display("ERROR 18: Expected total is %b, actual total is %b", 4'd0, tb_scorehand.dut.total);
            err = 1'b1;
        end

        if (~err) begin
            $display("SUCCESS: All tests passed.");
        end
        $stop;
    end
						
endmodule