Skip to content

Commit

Permalink
fstrings better unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Nov 5, 2024
1 parent 8b1d430 commit 5592eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ParserTests/samples/IndentedWhileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void TestFString()
# fstring
v1 := 1
v2 := 2
fstring := $""{v1} - content - {v2} - end""
fstring := $""v1 :> {v1} < v2 :> {v2} < v3 :> {v1+v2} < - end""
";
Console.WriteLine("==================================");
Console.WriteLine("=== parse fstring");
Expand All @@ -243,7 +243,7 @@ public void TestFString()
Check.That(context.variables).CountIs(3);
Check.That(context).HasVariableWithIntValue("v1", 1);
Check.That(context).HasVariableWithIntValue("v2", 2);
Check.That(context).HasVariableWithStringValue("fstring", "1 - content - 2 - end");
Check.That(context).HasVariableWithStringValue("fstring", "v1 :> 1 < v2 :> 2 < v3 :> 3 < - end");

}

Expand Down

0 comments on commit 5592eb5

Please sign in to comment.