Skip to content

Commit 475f2a4

Browse files
committed
Update default mods for tests
1 parent 8e0343e commit 475f2a4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/riichi_advanced/game/mod_loader.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule RiichiAdvanced.ModLoader do
2626
|> then(&".enabled_mods += #{Jason.encode!(mods)}"<>&1)
2727

2828
if Debug.print_mods() do
29-
IO.puts("Applying mods [#{Enum.join(mods, ", ")}]")
29+
IO.puts("Applying mods [#{Enum.map_join(mods, ", ", &inspect/1)}]")
3030
end
3131
JQ.query_string_with_string!(ruleset_json, mod_contents)
3232
end

test/support/test_utils.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ defmodule RiichiAdvanced.TestUtils do
1313
%{name: "nagashi", config: %{"is" => "Mangan"}},
1414
%{name: "tobi", config: %{"below" => 0}},
1515
%{
16-
name: "uma",
17-
config: %{"_1st" => 10, "_2nd" => 5, "_3rd" => -5, "_4th" => -10}
16+
name: "uma",
17+
config: %{"_1st" => 10, "_2nd" => 5, "_3rd" => -5, "_4th" => -10}
1818
},
1919
"agarirenchan",
2020
"tenpairenchan",
2121
"double_wind_4_fu",
2222
"pao",
23+
"kokushi_chankan",
2324
"suufon_renda",
2425
"suucha_riichi",
2526
"suukaikan",
@@ -30,6 +31,7 @@ defmodule RiichiAdvanced.TestUtils do
3031
"yaku/ippatsu",
3132
%{name: "yaku/renhou", config: %{"is" => "Yakuman"}},
3233
"show_waits",
34+
%{name: "min_han", config: %{"min" => 1}},
3335
%{name: "aka", config: %{"man" => 1, "pin" => 1, "sou" => 1}}
3436
]
3537

0 commit comments

Comments
 (0)