mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 20:15:57 +00:00
Tests for LS on rust, written by windsurf with GPT4.1
This commit is contained in:
1 parent
3aaac1ac8a
commit
e6f0ddacef
5 files changed
+117
No files matched your search
+7
@@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "rsandbox"
|
||||
version = "0.1.0"
|
||||
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "rsandbox"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
@@ -0,0 +1,9 @@
|
||||
// This function returns the sum of 2 + 2
|
||||
pub fn add() -> i32 {
|
||||
let res = 2 + 2;
|
||||
res
|
||||
}
|
||||
pub fn multiply() -> i32 {
|
||||
2 * 3
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
use rsandbox::add;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, World!");
|
||||
println!("Good morning!");
|
||||
println!("add result: {}", add());
|
||||
println!("inserted line");
|
||||
}
|
||||
Reference in new issue
Block a user