Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
sargeantPig committed Jan 2, 2024
1 parent df8f19a commit 6a90eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RTWLib_Tests/wrappers/Tests_ds.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace RTWLib_Tests.wrappers;

using Microsoft.VisualStudio.TestTools.UnitTesting;
using RTWLib_CLI.cmd;
using RTWLibPlus.data;
using RTWLibPlus.dataWrappers;
using RTWLibPlus.helpers;
Expand Down Expand Up @@ -52,7 +53,7 @@ public void DsGetCharacterChangeCoords()
System.Collections.Generic.List<RTWLibPlus.interfaces.IBaseObj> dsParse = this.dp.Parse(ds, Creator.DScreator);
DS parsedds = new(dsParse, this.config);
System.Collections.Generic.List<RTWLibPlus.interfaces.IBaseObj> characters = parsedds.GetItemsByIdent("character");
string result = DS.ChangeCharacterCoordinates(((BaseObj)characters[0]).Value, new Vector2(1, 1));
string result = DS.ChangeCharacterCoordinates(((BaseObj)characters[0]).Value, new Vector2(1, 1), new Vector2(0, 0));
string expected = "Julius, named character, leader, age 47, , x 1, y 1"; //number of settlements

Assert.AreEqual(expected, result); //check number of returned settlements
Expand Down

0 comments on commit 6a90eec

Please sign in to comment.