diff --git a/test/NITTA/Model/ProcessorUnits/Tests/DSL/Tests.hs b/test/NITTA/Model/ProcessorUnits/Tests/DSL/Tests.hs index 257b70367..732a4b64a 100644 --- a/test/NITTA/Model/ProcessorUnits/Tests/DSL/Tests.hs +++ b/test/NITTA/Model/ProcessorUnits/Tests/DSL/Tests.hs @@ -204,8 +204,11 @@ tests = , constant 2 ["!2#0"] , constant 1 ["!1#0"] ] + -- FIXME: https://github.com/ryukzak/nitta/issues/196 + -- should be: + -- [ constant 3 ["_0#d"] ] [ constant 3 ["_0#d"] - , constant 2 ["!2#0"] -- FIXME: Do we actually need this? + , constant 2 ["!2#0"] , constant 1 ["!1#0"] ] >>= \r -> assertRefactor r diff --git a/web/src/components/SubforestTables/Columns.tsx b/web/src/components/SubforestTables/Columns.tsx index 7a933c5cc..3dc580eca 100644 --- a/web/src/components/SubforestTables/Columns.tsx +++ b/web/src/components/SubforestTables/Columns.tsx @@ -218,12 +218,10 @@ export function showBreakLoop(decision: BreakLoop): ReactElement { export function showConstantFolding(d: ConstantFolding): ReactElement { return (
- {d.cRefOld.map((e: FView) => e.fvFun).join("\n")} -
+ {d.cRefOld.map((e: FView) => <> {e.fvFun}
)}
- {d.cRefNew.map((e: FView) => e.fvFun).join(", ")} -
+ {d.cRefNew.map((e: FView) => <> {e.fvFun}
)}
); }