Tests for LS on rust, written by windsurf with GPT4.1

This commit is contained in:
Michael Panchenko committed 2025-04-27 15:34:29 +02:00
1 parent 3aaac1ac8a
commit e6f0ddacef
5 files changed
+117

No files matched your search

+7
View File
@@ -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");
}