summaryrefslogtreecommitdiff
path: root/sample/trick2025/02-mame/test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sample/trick2025/02-mame/test.patch')
-rw-r--r--sample/trick2025/02-mame/test.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sample/trick2025/02-mame/test.patch b/sample/trick2025/02-mame/test.patch
new file mode 100644
index 0000000000..0a63ae8a4c
--- /dev/null
+++ b/sample/trick2025/02-mame/test.patch
@@ -0,0 +1,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