about summary refs log tree commit diff
path: root/examples/6.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-05-04 23:11:05 +0200
committerBaitinq <[email protected]>2025-05-04 23:11:09 +0200
commitc8b2865ec524e4774477c18e128522d89358a91d (patch)
tree8d95f810def4746e923e3cfe62fb030c7a9ed12b /examples/6.src
parentBootstrap: Iterate chars (diff)
downloadpry-lang-c8b2865ec524e4774477c18e128522d89358a91d.tar.gz
pry-lang-c8b2865ec524e4774477c18e128522d89358a91d.tar.bz2
pry-lang-c8b2865ec524e4774477c18e128522d89358a91d.zip
Examples: Add expected stdout and exit code
Diffstat (limited to 'examples/6.src')
-rw-r--r--examples/6.src13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/6.src b/examples/6.src
index 3c90471..44ff0e0 100644
--- a/examples/6.src
+++ b/examples/6.src
@@ -10,3 +10,16 @@ let main = () => i64 {
 	let i = print_input(1,4);
 	return print_input(7, 2) + i;
 };
+
+/*
+
+Expected stdout:
+
+1
+4
+7
+2
+
+Expected return: 14
+
+*/