Implemented tests

This commit is contained in:
2026-06-10 05:48:51 +02:00
parent 14e88e2e4d
commit e7f1072050
12 changed files with 24 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
pub module attribute_test;
#[derive(Debug)]
pub struct Debuggable {
value i32,
+2
View File
@@ -1,3 +1,5 @@
pub module decl_test;
pub fn test_let_basic() {
let x = 42;
assert_eq!(x, 42);
+2
View File
@@ -1,3 +1,5 @@
pub module expr_test;
pub fn test_literals() {
assert_eq!(42, 42);
assert_eq!(3.14, 3.14);
+2
View File
@@ -1,3 +1,5 @@
pub module statement_test;
pub fn test_var_decl() {
let x = 42;
assert_eq!(x, 42);
+2
View File
@@ -1,3 +1,5 @@
pub module types_test;
pub fn test_integer_type() {
let x i32 = 42;
assert_eq!(x, 42);