From 7dcdb3bf3d62768066c133590205e3a27de4b50d Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:58:56 +0000 Subject: [PATCH] Patched tests/cicd/generate_docstring/usage_example.py --- tests/cicd/generate_docstring/usage_example.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/cicd/generate_docstring/usage_example.py diff --git a/tests/cicd/generate_docstring/usage_example.py b/tests/cicd/generate_docstring/usage_example.py new file mode 100644 index 000000000..da7749512 --- /dev/null +++ b/tests/cicd/generate_docstring/usage_example.py @@ -0,0 +1,16 @@ +// Example use of a_plus_b function in Test class +public class Main { + public static void main(String[] args) { + // Simple addition + int sum = Test.a_plus_b(5, 3); + System.out.println("Sum: " + sum); // Outputs: Sum: 8 + + // Comparison using a function to get the key + int comparisonResult = Test.a_plus_b( + obj -> (Integer) obj, + 10, + 5 + ); + System.out.println("Comparison Result: " + comparisonResult); // Outputs: 1 + } +}