@@ -74,18 +74,26 @@ describe('Participant Table', function()
7474 stub (mw .ext .LiquipediaDB , " lpdb_placement" )
7575 InfoboxLeague .run (tournamentData )
7676
77+ local make = function (args )
78+ return tostring (ParticipantTable .run (args ))
79+ end
80+
7781 local notAsFactionTable = function (args )
78- return Table .merge (args , {soloAsFactionTable = false })
82+ return make (Table .merge (args , {soloAsFactionTable = false }))
83+ end
84+
85+ local showSeedingFirst = function (args )
86+ return Table .merge (args , {showSeedingFirst = true })
7987 end
8088
81- GoldenTest (' participant_table' , tostring ( ParticipantTable . run ( notAsFactionTable (argsPlain )) ))
82- GoldenTest (' participant_faction_table' , tostring ( ParticipantTable . run ( argsPlain ) ))
83- GoldenTest (' participant_table_with_seed' , tostring ( ParticipantTable . run ( notAsFactionTable (argsWithSeed )) ))
84- -- doesn't work yet due to it not being implemented yet
85- -- GoldenTest('participant_faction_table_with_seed ', tostring(ParticipantTable.run (argsWithSeed)))
86- GoldenTest (' participant_table_with_duo' , tostring ( ParticipantTable . run ( argsDuoOpponent ) ))
87- GoldenTest (' participant_table_with_section' , tostring ( ParticipantTable . run ( notAsFactionTable (argsWithSections )) ))
88- GoldenTest (' participant_faction_table_with_section' , tostring ( ParticipantTable . run ( argsWithSections ) ))
89+ GoldenTest (' participant_table' , notAsFactionTable (argsPlain ))
90+ GoldenTest (' participant_faction_table' , make ( argsPlain ))
91+ GoldenTest (' participant_table_with_seed' , notAsFactionTable (argsWithSeed ))
92+ GoldenTest ( ' participant_faction_table_with_seed ' , make ( argsWithSeed ))
93+ GoldenTest (' participant_table_seed_list ' , make ( showSeedingFirst (argsWithSeed )))
94+ GoldenTest (' participant_table_with_duo' , make ( argsDuoOpponent ))
95+ GoldenTest (' participant_table_with_section' , notAsFactionTable (argsWithSections ))
96+ GoldenTest (' participant_faction_table_with_section' , make ( argsWithSections ))
8997
9098 mw .ext .LiquipediaDB .lpdb_tournament :revert ()
9199 --- @diagnostic disable-next-line : undefined-field
0 commit comments