From 47acda0c0f8e9e5def20674dfed20ab4bd4b0758 Mon Sep 17 00:00:00 2001 From: homothetyhk Date: Sat, 2 Mar 2024 09:49:09 -0800 Subject: [PATCH] Bump version. --- RandomizerCore/RandomizerCore.csproj | 2 +- RandomizerCoreTests/LogicDefEndToEndTests.cs | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/RandomizerCore/RandomizerCore.csproj b/RandomizerCore/RandomizerCore.csproj index eb736cb..948defa 100644 --- a/RandomizerCore/RandomizerCore.csproj +++ b/RandomizerCore/RandomizerCore.csproj @@ -2,7 +2,7 @@ ae78b8e8-a733-44a2-be63-d264c82118b7 RandomizerCore - 2.0.1 + 2.0.2 netstandard2.1;net472;net6.0;net8.0 true diff --git a/RandomizerCoreTests/LogicDefEndToEndTests.cs b/RandomizerCoreTests/LogicDefEndToEndTests.cs index f78a362..5acb161 100644 --- a/RandomizerCoreTests/LogicDefEndToEndTests.cs +++ b/RandomizerCoreTests/LogicDefEndToEndTests.cs @@ -62,6 +62,17 @@ public void TestLogic1() l1.CanGet(pm).Should().BeTrue(); } + [Fact] + public void OrigCoalesceTest() + { + LogicManagerBuilder lmb = new(); + lmb.GetOrAddTerm("A"); + lmb.DoLogicEdit(new("L1", "ORIG?A")); + lmb.LogicLookup["L1"].ToInfix().Should().Be("A"); + lmb.AddTransition(new("T", "A")); + lmb.DoLogicEdit(new("L2", "ORIG?*T")); + lmb.LogicLookup["L2"].ToInfix().Should().Be("*T"); + } } }