;================================================================
; test/e2e_test 端到端测试（黑箱测试）
; e2e_test_target_function.erb 目标功能（开发中）
;================================================================


;;;端到端测试 目标功能
;;;@return 没有返回值
@e2e_test_target_function()
    #DIM DYNAMIC i
    CALL PrintLine

    ; CALL PrintLog(@"GETNUM(数组变量, \"赤五万\")={GETNUM(MJ_ENUM_TILE_VALUE, "赤五万")}, ERDNAME(数组变量, 34)=%ERDNAME(MJ_ENUM_TILE_VALUE, 34)%", "debug")
    ; CALL PrintLog(@"{MJ_ENUM_TILE_VALUE:九饼} %MJ_ENUM_TILE_CODE:九饼%", "debug")
    ; CALL PrintLog(@"%tr("tile:0p")% %tr("tile:0z")% %tr("tile_sc:5m")% %tr("tile_sc:0m")%", "debug")

    ; ;#; MJ_CHEAT_X_RAY = 1
    ; CALL MahjongShuffleTilesWall(MJ_GAME_RULE)
    ; ;#; CALL MahjongPrintTilesWall(MJ_CHEAT_X_RAY)
    ; CALL MahjongDealStartingHand
    ; FOR i, 0, 4
    ;     ;#; CALL MahjongPrintOthersStatus(i)
    ; NEXT

    ; PRINTFORML debug 未排序的手牌 %mj_get_hand_code(0)%(len={mj_count_hand(0)})
    ; CALL MahjongSortHand(0)
    ; PRINTFORML debug 排序后的手牌 %mj_get_hand_code(0)%(len={mj_count_hand(0)})
    ; CALL MahjongCreateHand("5m5m0m4p0p6p5s5s0s1z1z", 0)
    ; PRINTFORML debug 作弊后的手牌 %mj_get_hand_code(0)%(len={mj_count_hand(0)})

    PRINTFORML 1m3m4m5m1p2p3p9p9p4s7s8s1z 向听数={mj_calculate_shanten_for_regular("1m3m4m5m1p2p3p9p9p4s7s8s1z")}

    RETURN
