Updated image

This commit is contained in:
2026-06-09 20:08:09 +02:00
parent be0550b57a
commit 4780f5ce68
3 changed files with 11 additions and 16 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ Originally this readme was part of the Carbon Language project, licensed with Ap
</p>
<img src="code.png" align="right" width="575" alt="">
<img src="code.png" align="right" width="300" alt="">
<!--
Don't let the text wrap too narrowly to the left of the above image.
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 53 KiB

+10 -15
View File
@@ -1,18 +1,13 @@
fn main() {
println!("running common tests...");
common::expr_test::run_tests();
common::statement_test::run_tests();
common::decl_test::run_tests();
common::types_test::run_tests();
pub class Player {
pub name String;
pub hp i32;
println!("running items tests...");
items::function_test::run_tests();
items::struct_test::run_tests();
items::enum_test::run_tests();
items::class_test::run_tests();
items::trait_test::run_tests();
items::impl_test::run_tests();
items::attribute_test::run_tests();
pub constructor(name *str) {
self.hp = 100;
self.name.to_string();
}
println!("\x1b[32m\nAll tests passed!\x1b[0m");
pub fn is_dead(*self) bool {
self.hp <= 0
}
}