Skip to content

Commit

Permalink
Quoted test changes to not log to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardCooke committed Feb 26, 2024
1 parent 33ed33b commit 7ae209b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 3 additions & 10 deletions YamlDotNet.Benchmark/Program.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using YamlDotNet.Serialization;
using BenchmarkDotNet.Running;
using YamlDotNet.Benchmark;

var serializer = new SerializerBuilder()
.WithQuotingNecessaryStrings()
.Build();

var s = "\t, something";
var yaml = serializer.Serialize(s);
Console.WriteLine(yaml);
var deserializer = new DeserializerBuilder().Build();
var value = deserializer.Deserialize(yaml);
BenchmarkSwitcher.FromAssembly(typeof(YamlStreamBenchmark).Assembly).Run(args);
2 changes: 0 additions & 2 deletions YamlDotNet.Test/Serialization/SerializationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,6 @@ public void TabsGetQuotedWhenQuoteNecessaryStringsIsOn()

var s = "\t, something";
var yaml = serializer.Serialize(s);
Console.WriteLine(yaml);
var deserializer = new DeserializerBuilder().Build();
var value = deserializer.Deserialize(yaml);
Assert.Equal(s, value);
Expand All @@ -2453,7 +2452,6 @@ public void SpacesGetQuotedWhenQuoteNecessaryStringsIsOn()

var s = " , something";
var yaml = serializer.Serialize(s);
Console.WriteLine(yaml);
var deserializer = new DeserializerBuilder().Build();
var value = deserializer.Deserialize(yaml);
Assert.Equal(s, value);
Expand Down

0 comments on commit 7ae209b

Please sign in to comment.