Skip to content

Commit

Permalink
TranslatorSpec: use the ResultMap alias in conversion from lang-res…
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Mar 9, 2024
1 parent 1bf9af9 commit 49e82a4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,10 @@ class TranslatorSpec extends AnyFunSpec {
runTest(src, tp, expType, expOut)

def everybody(src: String, expOut: String, expType: DataType = CalcIntType)(implicit pos: Position) =
runTest(src, Always(CalcIntType), expType, ALL_LANGS.map((langObj) => langObj -> expOut).to(ListMap))
runTest(src, Always(CalcIntType), expType, ResultMap(ALL_LANGS.map((langObj) => langObj -> expOut).toSeq:_*))

def everybodyExcept(src: String, commonExpOut: String, rm: ResultMap, expType: DataType = CalcIntType)(implicit pos: Position) =
runTest(src, Always(CalcIntType), expType, ALL_LANGS.map((langObj) =>
runTest(src, Always(CalcIntType), expType, ResultMap(ALL_LANGS.map((langObj) =>
langObj -> rm.getOrElse(langObj, commonExpOut)
).to(ListMap))
).toSeq:_*))
}

0 comments on commit 49e82a4

Please sign in to comment.