From eab290e6d407c6ebb84c18256147144f5185f741 Mon Sep 17 00:00:00 2001 From: Willem Cazander Date: Sun, 30 Jan 2022 14:51:30 +0100 Subject: [PATCH] Unit tested base2 with hebrew. --- .../demo4d/screen/HebrewWalletRenderer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/love/distributedrebirth/demo4d/screen/HebrewWalletRenderer.java b/core/src/love/distributedrebirth/demo4d/screen/HebrewWalletRenderer.java index acbd0fa4..4aa81300 100644 --- a/core/src/love/distributedrebirth/demo4d/screen/HebrewWalletRenderer.java +++ b/core/src/love/distributedrebirth/demo4d/screen/HebrewWalletRenderer.java @@ -32,7 +32,7 @@ public class HebrewWalletRenderer extends ImGuiRendererMain { if (ImGui.button("Pay")) { } int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; - ImGui.beginTable("wallet", 4, flags); + ImGui.beginTable("wallet", 5, flags); ImGui.tableSetupColumn("In/Out"); ImGui.tableSetupColumn("AmountRaw"); ImGui.tableSetupColumn("AmountFix"); @@ -46,13 +46,14 @@ public class HebrewWalletRenderer extends ImGuiRendererMain { }; for (String data:walletData) { Gê̄ldGetậl geld = new Gê̄ldGetậl(data); + Gê̄ldGetậl geld2 = new Gê̄ldGetậl(geld.toTeger().toClone().toClone()); // unit test ImGui.tableNextRow(); ImGui.tableNextColumn(); ImGui.text(data.length()==2||data.length()==3?"OUT":"IN"); ImGui.tableNextColumn(); ImGui.text(data); ImGui.tableNextColumn(); - ImGui.text(geld.toHebrewString(true)); // true=reverse for ImGui + ImGui.text(geld2.toHebrewString(true)); // true=reverse for ImGui ImGui.tableNextColumn(); ImGui.text(Double.toString(geld.getTotalDecimalValue())); }