Skip to content

Commit

Permalink
Use forward slashes for unit test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed May 4, 2024
1 parent 1bd5e7b commit 27ba65e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Test/ProcessorTests/FullOpcodeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15282,7 +15282,7 @@ public void FSYS_CDR_Address()

testProcessor = new(2046);
testProcessor.LoadProgram(new byte[] { 0xFF, 0x06, 0x10, 0x28, 2, 0, 0, 0, 0, 0, 0 });
Encoding.UTF8.GetBytes("New Dir\\Dir1\\Directory 2\0").CopyTo(testProcessor.Memory, 552);
Encoding.UTF8.GetBytes("New Dir/Dir1/Directory 2\0").CopyTo(testProcessor.Memory, 552);
_ = testProcessor.Execute(false);
Assert.IsTrue(Directory.Exists(targetDirectory), "Instruction did not create directory");
Assert.AreEqual(11UL, testProcessor.Registers[(int)Register.rpo], "Instruction updated the rpo register by an incorrect amount");
Expand Down Expand Up @@ -15319,7 +15319,7 @@ public void FSYS_CDR_Pointer()
testProcessor = new(2046);
testProcessor.Registers[(int)Register.rg7] = 552;
testProcessor.LoadProgram(new byte[] { 0xFF, 0x06, 0x11, (int)Register.rg7 });
Encoding.UTF8.GetBytes("New Dir\\Dir1\\Directory 2\0").CopyTo(testProcessor.Memory, 552);
Encoding.UTF8.GetBytes("New Dir/Dir1/Directory 2\0").CopyTo(testProcessor.Memory, 552);
_ = testProcessor.Execute(false);
Assert.IsTrue(Directory.Exists(targetDirectory), "Instruction did not create directory");
Assert.AreEqual(4UL, testProcessor.Registers[(int)Register.rpo], "Instruction updated the rpo register by an incorrect amount");
Expand Down

0 comments on commit 27ba65e

Please sign in to comment.