summaryrefslogtreecommitdiff
path: root/sample/trick2025/02-mame/test.patch
blob: 0a63ae8a4c79184485edfbeff389568143fc046e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- sample.rb
+++ sample.rb
@@ -2,7 +2,13 @@
   a + b
 end
 
+def sub(a, b)
+  a - b
+end
+
 if __FILE__ == $0
   result = add(3, 5)
   puts "Three plus five is #{ result }"
+  result = sub(5, 3)
+  puts "five minus three is #{ result }"
 end