Commit 93662aa8 authored by James Knee's avatar James Knee
Browse files

test case bug

parent 73c1bd47
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ float test_0a(){
    int case1 = Hamming(5, 4); // = 1
    int case2 = Hamming(17, 26); // = 3
    int case3 = Hamming(4294967295, 0); // = 32
    int case4 = Hamming(3725, 845); // = 9
    int case4 = Hamming(3745, 845); // = 9
    

    if (case0 != 0){
@@ -41,7 +41,7 @@ float test_0a(){
        total -= 2.5;
    }

    if (case4 != 59){
    if (case4 != 9){
        cout << "-2.5: Hamming(3725,845) = 59, but your function returned Hamming(3725,845) = " << case4 << endl;
        total -= 2.5;
    }