From e7f10720509953d5a682aba88ba61087066ec480 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Wed, 10 Jun 2026 05:48:51 +0200 Subject: [PATCH] Implemented tests --- mist-test/src/common/attribute_test.mist | 2 ++ mist-test/src/common/decl_test.mist | 2 ++ mist-test/src/common/expr_test.mist | 2 ++ mist-test/src/common/statement_test.mist | 2 ++ mist-test/src/common/types_test.mist | 2 ++ mist-test/src/items/attribute_test.mist | 2 ++ mist-test/src/items/class_test.mist | 2 ++ mist-test/src/items/enum_test.mist | 2 ++ mist-test/src/items/function_test.mist | 2 ++ mist-test/src/items/impl_test.mist | 2 ++ mist-test/src/items/struct_test.mist | 2 ++ mist-test/src/items/trait_test.mist | 2 ++ 12 files changed, 24 insertions(+) diff --git a/mist-test/src/common/attribute_test.mist b/mist-test/src/common/attribute_test.mist index 313a20d..09f76f2 100644 --- a/mist-test/src/common/attribute_test.mist +++ b/mist-test/src/common/attribute_test.mist @@ -1,3 +1,5 @@ +pub module attribute_test; + #[derive(Debug)] pub struct Debuggable { value i32, diff --git a/mist-test/src/common/decl_test.mist b/mist-test/src/common/decl_test.mist index 60eda7f..e9a2e09 100644 --- a/mist-test/src/common/decl_test.mist +++ b/mist-test/src/common/decl_test.mist @@ -1,3 +1,5 @@ +pub module decl_test; + pub fn test_let_basic() { let x = 42; assert_eq!(x, 42); diff --git a/mist-test/src/common/expr_test.mist b/mist-test/src/common/expr_test.mist index a7decf1..c7a7cee 100644 --- a/mist-test/src/common/expr_test.mist +++ b/mist-test/src/common/expr_test.mist @@ -1,3 +1,5 @@ +pub module expr_test; + pub fn test_literals() { assert_eq!(42, 42); assert_eq!(3.14, 3.14); diff --git a/mist-test/src/common/statement_test.mist b/mist-test/src/common/statement_test.mist index b26ca96..8829946 100644 --- a/mist-test/src/common/statement_test.mist +++ b/mist-test/src/common/statement_test.mist @@ -1,3 +1,5 @@ +pub module statement_test; + pub fn test_var_decl() { let x = 42; assert_eq!(x, 42); diff --git a/mist-test/src/common/types_test.mist b/mist-test/src/common/types_test.mist index 62779b0..8edf714 100644 --- a/mist-test/src/common/types_test.mist +++ b/mist-test/src/common/types_test.mist @@ -1,3 +1,5 @@ +pub module types_test; + pub fn test_integer_type() { let x i32 = 42; assert_eq!(x, 42); diff --git a/mist-test/src/items/attribute_test.mist b/mist-test/src/items/attribute_test.mist index 313a20d..09f76f2 100644 --- a/mist-test/src/items/attribute_test.mist +++ b/mist-test/src/items/attribute_test.mist @@ -1,3 +1,5 @@ +pub module attribute_test; + #[derive(Debug)] pub struct Debuggable { value i32, diff --git a/mist-test/src/items/class_test.mist b/mist-test/src/items/class_test.mist index db6b7ec..d50ff9c 100644 --- a/mist-test/src/items/class_test.mist +++ b/mist-test/src/items/class_test.mist @@ -1,3 +1,5 @@ +pub module class_test; + pub class Animal { pub name String; pub val T; diff --git a/mist-test/src/items/enum_test.mist b/mist-test/src/items/enum_test.mist index 8bcdd0b..a005f46 100644 --- a/mist-test/src/items/enum_test.mist +++ b/mist-test/src/items/enum_test.mist @@ -1,3 +1,5 @@ +pub module enum_test; + enum OptionInt { None, Some[i32], diff --git a/mist-test/src/items/function_test.mist b/mist-test/src/items/function_test.mist index 7b051f0..8cbcb21 100644 --- a/mist-test/src/items/function_test.mist +++ b/mist-test/src/items/function_test.mist @@ -1,3 +1,5 @@ +pub module function_test; + fn greet() { let mut x = 1; x++; diff --git a/mist-test/src/items/impl_test.mist b/mist-test/src/items/impl_test.mist index 2c9240c..2c9b50a 100644 --- a/mist-test/src/items/impl_test.mist +++ b/mist-test/src/items/impl_test.mist @@ -1,3 +1,5 @@ +pub module impl_test; + struct Vector2 { x i32, y i32, diff --git a/mist-test/src/items/struct_test.mist b/mist-test/src/items/struct_test.mist index 7475688..bd83f6b 100644 --- a/mist-test/src/items/struct_test.mist +++ b/mist-test/src/items/struct_test.mist @@ -1,3 +1,5 @@ +pub module struct_test; + struct Point { x i32, y i32, diff --git a/mist-test/src/items/trait_test.mist b/mist-test/src/items/trait_test.mist index 55ce2c3..41fe093 100644 --- a/mist-test/src/items/trait_test.mist +++ b/mist-test/src/items/trait_test.mist @@ -1,3 +1,5 @@ +pub module trait_test; + trait Speak { fn speak(*self) String; }