From 492a56b70d5956a956052f37fd77081554cdb837 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 20 Jul 2023 10:19:03 +0100 Subject: Fix naming of code gen tests --- .../java/org/shedlang/compiler/patio/PatioCodeGenDiscardTests.java | 2 +- .../java/org/shedlang/compiler/patio/PatioCodeGenLocalLoadTests.java | 2 +- .../java/org/shedlang/compiler/patio/PatioCodeGenLocalStoreTests.java | 2 +- .../java/org/shedlang/compiler/patio/PatioCodeGenPushBoolTests.java | 4 ++-- .../java/org/shedlang/compiler/patio/PatioCodeGenPushIntTests.java | 2 +- .../java/org/shedlang/compiler/patio/PatioCodeGenPushUnitTests.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/test/java') 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; -- cgit v1.2.3