Fixed test

This commit is contained in:
2026-06-05 12:56:14 +02:00
parent 595ddc789d
commit b311dbd16c
12 changed files with 72 additions and 77 deletions
+6 -6
View File
@@ -4,16 +4,16 @@ pub void test_let_basic() {
}
pub void test_let_typed() {
Int x = 42;
i32 x = 42;
assert_eq!(x, 42);
String s = "hello";
str* s = "hello";
assert_eq!(s, "hello");
Bool b = true;
bool b = true;
assert_eq!(b, true);
Float f = 3.14;
f64 f = 3.14;
assert_eq!(f, 3.14);
}
@@ -52,8 +52,8 @@ pub void test_multiple_decls() {
}
pub void test_let_with_type_and_init() {
Int x = 10;
assert_eq!(x, 10);
f64 x = 10.0;
assert_eq!(x, 10.0);
}
pub void test_string_literal() {