Skip to content

Commit

Permalink
Fix tests for unity
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Apr 5, 2024
1 parent bae6725 commit f2ff335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions VYaml.Tests/Emitter/Utf8YamlEmitterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ public void FlowSequence_Nested_WithTag()
{
emitter.WriteString("A1");
emitter.Tag("!a1");
emitter.WriteFloat(float.Pi); // !a1 is skipped and written later
emitter.WriteFloat(3.1415f); // !a1 is skipped and written later

emitter.WriteString("NoTag1");
emitter.BeginSequence(SequenceStyle.Flow); // !a1 is written here instead of after A1:
Expand All @@ -1179,7 +1179,7 @@ public void FlowSequence_Nested_WithTag()
emitter.EndMapping();

Assert.That(ToString(in emitter), Is.EqualTo(
"A1: !a1 3.1415927\n" +
"A1: !a1 3.1415\n" +
"NoTag1: [!a2 A2]\n" +
"NoTag2: \n" +
"- !a3 A3\n"
Expand Down
4 changes: 2 additions & 2 deletions VYaml.Unity/Assets/Tests/Emitter/Utf8YamlEmitterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ public void FlowSequence_Nested_WithTag()
{
emitter.WriteString("A1");
emitter.Tag("!a1");
emitter.WriteFloat(float.Pi); // !a1 is skipped and written later
emitter.WriteFloat(3.1415f); // !a1 is skipped and written later

emitter.WriteString("NoTag1");
emitter.BeginSequence(SequenceStyle.Flow); // !a1 is written here instead of after A1:
Expand All @@ -1179,7 +1179,7 @@ public void FlowSequence_Nested_WithTag()
emitter.EndMapping();

Assert.That(ToString(in emitter), Is.EqualTo(
"A1: !a1 3.1415927\n" +
"A1: !a1 3.1415\n" +
"NoTag1: [!a2 A2]\n" +
"NoTag2: \n" +
"- !a3 A3\n"
Expand Down

0 comments on commit f2ff335

Please sign in to comment.