Skip to content

Commit

Permalink
Add build step to make test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcronqvist committed Aug 21, 2024
1 parent 7fbf016 commit 9960ccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test:
dotnet build src/DotTiled.sln
dotnet test src/DotTiled.sln

docs-serve:
Expand Down
4 changes: 2 additions & 2 deletions src/DotTiled.Benchmark/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public MapLoading()

[BenchmarkCategory("MapFromInMemoryTmxString")]
[Benchmark(Baseline = true, Description = "DotTiled")]
public DotTiled.Model LoadWithDotTiledFromInMemoryTmxString()
public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmxString()
{
using var stringReader = new StringReader(_tmxContents);
using var xmlReader = XmlReader.Create(stringReader);
Expand All @@ -49,7 +49,7 @@ public DotTiled.Model LoadWithDotTiledFromInMemoryTmxString()

[BenchmarkCategory("MapFromInMemoryTmjString")]
[Benchmark(Baseline = true, Description = "DotTiled")]
public DotTiled.Model LoadWithDotTiledFromInMemoryTmjString()
public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmjString()
{
using var mapReader = new DotTiled.Serialization.Tmj.TmjMapReader(_tmjContents, _ => throw new Exception(), _ => throw new Exception(), []);
return mapReader.ReadMap();
Expand Down

0 comments on commit 9960ccc

Please sign in to comment.