Implemented tests
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
pub module attribute_test;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Debuggable {
|
||||
value i32,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
pub module decl_test;
|
||||
|
||||
pub fn test_let_basic() {
|
||||
let x = 42;
|
||||
assert_eq!(x, 42);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
pub module expr_test;
|
||||
|
||||
pub fn test_literals() {
|
||||
assert_eq!(42, 42);
|
||||
assert_eq!(3.14, 3.14);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
pub module statement_test;
|
||||
|
||||
pub fn test_var_decl() {
|
||||
let x = 42;
|
||||
assert_eq!(x, 42);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
pub module types_test;
|
||||
|
||||
pub fn test_integer_type() {
|
||||
let x i32 = 42;
|
||||
assert_eq!(x, 42);
|
||||
|
||||
Reference in New Issue
Block a user