Skip to content

Commit

Permalink
Update BuiltinsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Nov 22, 2023
1 parent 1cb2dc0 commit 059bc81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Runtime/DialogueRunnerTests/DialogueRunnerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public IEnumerator VariableStorage_OnExternalChanges_ReturnsExpectedValue() {
runner.StartDialogue("BuiltinsTest");
yield return null;

Assert.AreEqual("Jane: round(3.522) = 4; round_places(3.522, 2) = 3.52; floor(3.522) = 3; floor(-3.522) = -4; ceil(3.522) = 4; ceil(-3.522) = -3; inc(3.522) = 4; inc(4) = 5; dec(3.522) = 3; dec(3) = 2; decimal(3.522) = 0.5220001; int(3.522) = 3; int(-3.522) = -3;", dialogueUI.CurrentLine);
Assert.AreEqual("Jane: round(3.522) = 4; round_places(3.522, 2) = 3.52; floor(3.522) = 3; floor(-3.522) = -4; ceil(3.522) = 4; ceil(-3.522) = -3; inc(3.522) = 4; inc(4) = 5; dec(3.522) = 3; dec(3) = 2; round_places(decimal(3.522),3) = 0.522; int(3.522) = 3; int(-3.522) = -3;", dialogueUI.CurrentLine);

// dialogueUI.ReadyForNextLine();
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Runtime/DialogueRunnerTests/DialogueRunnerTests.yarn
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Jane: Here's a function from code that's in another assembly: {testExternalAssem
===
title: BuiltinsTest
---
Jane: round(3.522) = {round(3.522)}; round_places(3.522, 2) = {round_places(3.522, 2)}; floor(3.522) = {floor(3.522)}; floor(-3.522) = {floor(-3.522)}; ceil(3.522) = {ceil(3.522)}; ceil(-3.522) = {ceil(-3.522)}; inc(3.522) = {inc(3.522)}; inc(4) = {inc(4)}; dec(3.522) = {dec(3.522)}; dec(3) = {dec(3)}; decimal(3.522) = {decimal(3.522)}; int(3.522) = {int(3.522)}; int(-3.522) = {int(-3.522)};
Jane: round(3.522) = {round(3.522)}; round_places(3.522, 2) = {round_places(3.522, 2)}; floor(3.522) = {floor(3.522)}; floor(-3.522) = {floor(-3.522)}; ceil(3.522) = {ceil(3.522)}; ceil(-3.522) = {ceil(-3.522)}; inc(3.522) = {inc(3.522)}; inc(4) = {inc(4)}; dec(3.522) = {dec(3.522)}; dec(3) = {dec(3)}; round_places(decimal(3.522),3) = {round_places(decimal(3.522),3)}; int(3.522) = {int(3.522)}; int(-3.522) = {int(-3.522)};
// actual function unit testing should go in the YarnSpinner core
===
title: LotsOfVars
Expand Down

0 comments on commit 059bc81

Please sign in to comment.