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 class_test;
pub class Animal<T> {
pub name String;
pub val T;
+2
View File
@@ -1,3 +1,5 @@
pub module enum_test;
enum OptionInt {
None,
Some[i32],
+2
View File
@@ -1,3 +1,5 @@
pub module function_test;
fn greet() {
let mut x = 1;
x++;
+2
View File
@@ -1,3 +1,5 @@
pub module impl_test;
struct Vector2 {
x i32,
y i32,
+2
View File
@@ -1,3 +1,5 @@
pub module struct_test;
struct Point {
x i32,
y i32,
+2
View File
@@ -1,3 +1,5 @@
pub module trait_test;
trait Speak {
fn speak(*self) String;
}