diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-20 10:19:03 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-20 10:19:03 +0100 |
| commit | 492a56b70d5956a956052f37fd77081554cdb837 (patch) | |
| tree | d1361500098506afe85240e5b1ad0874605814ed /src/test/java | |
| parent | e9b4a3d35aa08ff7579957a6c7622fff63f972c4 (diff) | |
Fix naming of code gen tests
Diffstat (limited to 'src/test/java')
6 files changed, 7 insertions, 7 deletions
diff --git a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenDiscardTests.java b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenDiscardTests.java index 7839f4d7..2f1c85a0 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenDiscardTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenDiscardTests.java @@ -14,7 +14,7 @@ import static org.shedlang.compiler.patio.PatioTesting.serialize; @ExtendWith({SnapshotResolver.class}) public class PatioCodeGenDiscardTests { @Test - public void discardInstructionGeneratesDiscardInstruction(Snapshotter snapshotter) throws IOException { + public void discardInstructionPopsFromTemporaryStack(Snapshotter snapshotter) throws IOException { var stackIr = Instructions.discard(); var context = PatioCodeGenContext.EMPTY .temporaryPush(new PatioLocal("a")) diff --git a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalLoadTests.java b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalLoadTests.java index eaf69d61..8ad1ba64 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalLoadTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalLoadTests.java @@ -13,7 +13,7 @@ import static org.shedlang.compiler.patio.PatioTesting.serialize; @ExtendWith({SnapshotResolver.class}) public class PatioCodeGenLocalLoadTests { @Test - public void localLoadGeneratesLocalLoad(Snapshotter snapshotter) throws IOException { + public void localLoadPushesLocalOntoStack(Snapshotter snapshotter) throws IOException { var stackIr = Instructions.localLoad("x"); var context = PatioCodeGenContext.EMPTY; diff --git a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalStoreTests.java b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalStoreTests.java index 3fb0456d..4003ee6d 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalStoreTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenLocalStoreTests.java @@ -14,7 +14,7 @@ import static org.shedlang.compiler.patio.PatioTesting.serialize; @ExtendWith({SnapshotResolver.class}) public class PatioCodeGenLocalStoreTests { @Test - public void localStoreGeneratesLocalStore(Snapshotter snapshotter) throws IOException { + public void localStorePopsTemporaryIntoLocal(Snapshotter snapshotter) throws IOException { var stackIr = Instructions.localStore("x"); var context = PatioCodeGenContext.EMPTY .temporaryPush(new PatioLocal("a")) diff --git a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushBoolTests.java b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushBoolTests.java index 3b304c4d..8045decf 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushBoolTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushBoolTests.java @@ -13,7 +13,7 @@ import static org.shedlang.compiler.patio.PatioTesting.serialize; @ExtendWith({SnapshotResolver.class}) public class PatioCodeGenPushBoolTests { @Test - public void pushBoolFalseInstructionGeneratesPushIntZeroInstruction(Snapshotter snapshotter) throws IOException { + public void pushBoolFalseInstructionGeneratesIntGetZeroInstruction(Snapshotter snapshotter) throws IOException { var stackIr = Instructions.pushBool(false); var context = PatioCodeGenContext.EMPTY; @@ -23,7 +23,7 @@ public class PatioCodeGenPushBoolTests { } @Test - public void pushBoolTrueInstructionGeneratesPushIntOneInstruction(Snapshotter snapshotter) throws IOException { + public void pushBoolTrueInstructionGeneratesIntGetOneInstruction(Snapshotter snapshotter) throws IOException { var stackIr = Instructions.pushBool(true); var context = PatioCodeGenContext.EMPTY; diff --git a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushIntTests.java b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushIntTests.java index 03a18aaa..b1790fda 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushIntTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushIntTests.java @@ -13,7 +13,7 @@ import static org.shedlang.compiler.patio.PatioTesting.serialize; @ExtendWith({SnapshotResolver.class}) public class PatioCodeGenPushIntTests { @Test - public void pushIntInstructionGeneratesPushIntInstruction(Snapshotter snapshotter) throws IOException { + public void pushIntInstructionGeneratesIntGetInstruction(Snapshotter snapshotter) throws IOException { var stackIr = Instructions.pushInt(42); var context = PatioCodeGenContext.EMPTY; diff --git a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushUnitTests.java b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushUnitTests.java index 11629e37..3aec3619 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushUnitTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenPushUnitTests.java @@ -13,7 +13,7 @@ import static org.shedlang.compiler.patio.PatioTesting.serialize; @ExtendWith({SnapshotResolver.class}) public class PatioCodeGenPushUnitTests { @Test - public void pushUnitInstructionGeneratesPushIntInstruction(Snapshotter snapshotter) throws IOException { + public void pushUnitInstructionGeneratesIntGetInstruction(Snapshotter snapshotter) throws IOException { var stackIr = Instructions.pushUnit(); var context = PatioCodeGenContext.EMPTY; |
