Fixed test
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user