From 18868128e18d38b706e7df14e8e683e1a9739c17 Mon Sep 17 00:00:00 2001
From: Melodi <62381002+Melodi17@users.noreply.github.com>
Date: Tue, 17 Mar 2026 20:49:22 +1000
Subject: chore: Initial commit
---
Compiler.Testing/Compiler.Testing.csproj | 28 ---------------------
Compiler.Testing/SanityTests.cs | 43 --------------------------------
Compiler.Testing/TestingHelpers.cs | 14 -----------
3 files changed, 85 deletions(-)
delete mode 100644 Compiler.Testing/Compiler.Testing.csproj
delete mode 100644 Compiler.Testing/SanityTests.cs
delete mode 100644 Compiler.Testing/TestingHelpers.cs
(limited to 'Compiler.Testing')
diff --git a/Compiler.Testing/Compiler.Testing.csproj b/Compiler.Testing/Compiler.Testing.csproj
deleted file mode 100644
index ed9c322..0000000
--- a/Compiler.Testing/Compiler.Testing.csproj
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- net9.0
- latest
- enable
- enable
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Compiler.Testing/SanityTests.cs b/Compiler.Testing/SanityTests.cs
deleted file mode 100644
index 46c0323..0000000
--- a/Compiler.Testing/SanityTests.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace Compiler.Testing;
-
-using Q1;
-
-[TestFixture]
-public class SanityTests
-{
- [Test]
- public void BlankProgram()
- {
- string program = """
- int main() { }
- """;
-
- string result = TestingHelpers.CompileString(program).Trim();
- Assert.That(
- result, Is.EqualTo(
- """
- jmp _main
- _main:
- mov 0, V0
- ret
- """));
- }
-
- [Test]
- public void ReturnConstant()
- {
- string program = """
- int main() { return 42; }
- """;
-
- string result = TestingHelpers.CompileString(program).Trim();
- Assert.That(
- result, Is.EqualTo(
- """
- jmp _main
- _main:
- mov 42, V0
- ret
- """));
- }
-}
\ No newline at end of file
diff --git a/Compiler.Testing/TestingHelpers.cs b/Compiler.Testing/TestingHelpers.cs
deleted file mode 100644
index a3d85fe..0000000
--- a/Compiler.Testing/TestingHelpers.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace Compiler.Testing;
-
-using Antlr4.Runtime;
-using Q1.Compiler;
-
-public class TestingHelpers
-{
- public static string CompileString(string input)
- {
- CompilerOptions options = new() { CommentCompilationMode = CommentCompilationMode.None };
- IEnumerable lines = Program.Compile(options, new AntlrInputStream(input));
- return Program.Optimize(lines);
- }
-}
\ No newline at end of file
--
cgit v1.3.1