Skip to content

Commit 023b6d4

Browse files
committed
#200 rename
1 parent 3ffcb58 commit 023b6d4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Domain/HydraScript.Domain.BackEnd/Impl/Instructions/Print.cs renamed to src/Domain/HydraScript.Domain.BackEnd/Impl/Instructions/Output.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace HydraScript.Domain.BackEnd.Impl.Instructions;
22

3-
public class Print(IValue value) : Instruction
3+
public class Output(IValue value) : Instruction
44
{
55
public override IAddress? Execute(IExecuteParams executeParams)
66
{
@@ -9,5 +9,5 @@ public class Print(IValue value) : Instruction
99
}
1010

1111
protected override string ToStringInternal() =>
12-
$"Print {value}";
12+
$"Output {value}";
1313
}

tests/HydraScript.UnitTests/Domain/BackEnd/AddressedInstructionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void EnumerationPreservedAfterRemovalTest()
1818
{
1919
Left = new Name("s", Substitute.For<IFrame>())
2020
},
21-
new Print(new Name("s", Substitute.For<IFrame>())),
21+
new Output(new Name("s", Substitute.For<IFrame>())),
2222
new Halt()
2323
];
2424

@@ -51,7 +51,7 @@ public void ReplacementPreservesOrderTest()
5151
{ Left = new Name("s", Substitute.For<IFrame>()) },
5252
"as_str"
5353
},
54-
new Print(new Name("s", Substitute.For<IFrame>())),
54+
new Output(new Name("s", Substitute.For<IFrame>())),
5555
};
5656

5757
var old = instructions[new Label("as_str")];

tests/HydraScript.UnitTests/Domain/BackEnd/InstructionsData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public InstructionsData()
6363
new IndexAssignment(Name("arr"), new Constant(1), new Constant(1)),
6464
"arr[1] = 1");
6565
Add(
66-
new Print(Name("str")),
67-
"Print str");
66+
new Output(Name("str")),
67+
"Output str");
6868
Add(
6969
new PushParameter(Name("value")),
7070
"PushParameter value");

tests/HydraScript.UnitTests/Domain/BackEnd/VirtualMachineTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class VirtualMachineTests
1616
[Theory, AutoHydraScriptData]
1717
public void CorrectPrintToOutTest([Frozen] IConsole console, TestVirtualMachine vm)
1818
{
19-
var print = new Print(new Constant(223))
19+
var print = new Output(new Constant(223))
2020
{
2121
Address = new HashAddress(1)
2222
};

0 commit comments

Comments
 (0)