Ad
  • Custom User Avatar

    For Golang:

    Something wrong with the random tests

    Random tests
    Log
    [^][ ][ ]__
    [x][ ][ ]__
    [ ][ ][ ]
    Arrow is aimed: true

    Expected
    : true
    to equal
    : false

    The same program in vscode:

    [^][ ][ ]_
    [x][ ][ ]_
    [ ][ ][ ]_
    Arrow is aimed: false

    Random tests
    Log
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][x][ ]__
    [^][ ][ ][ ][ ]__
    Arrow is aimed: true

    Expected
    : true
    to equal
    : false

    The same program in vscode:

    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][x][ ]__
    [^][ ][ ][ ][ ]__
    Arrow is aimed: false

    !!!!!!! ============= !!!!!!!!

    Another ramdom tests case:

    [ ][ ][ ][ ][ ]__
    [>][ ][ ][ ][x]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    Arrow is aimed: true

    Expected
    : true
    to equal
    : false

    Why false is expected here?