summaryrefslogtreecommitdiff
path: root/Compiler.Testing/SanityTests.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-17 20:49:22 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-17 20:49:22 +1000
commit18868128e18d38b706e7df14e8e683e1a9739c17 (patch)
tree6f0e0e5eee646f10cbad9c0c89c24d330bc58cc6 /Compiler.Testing/SanityTests.cs
parentd87ab8af4c86a3fc6ee237444e372d87e536e3ef (diff)
chore: Initial commit
Diffstat (limited to 'Compiler.Testing/SanityTests.cs')
-rw-r--r--Compiler.Testing/SanityTests.cs43
1 files changed, 0 insertions, 43 deletions
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