From f4cfb805e902cf20636bb3975d80332649c38cee Mon Sep 17 00:00:00 2001 From: Jing Chen Date: Wed, 5 Mar 2025 16:47:06 -0500 Subject: [PATCH] Update res Signed-off-by: Jing Chen --- tests/results/examples/talk/4-function.1.result | 2 ++ tests/results/examples/talk/4-function.12.result | 2 -- tests/results/examples/tutorial/parser_regex.3.result | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) create mode 100644 tests/results/examples/talk/4-function.1.result delete mode 100644 tests/results/examples/talk/4-function.12.result diff --git a/tests/results/examples/talk/4-function.1.result b/tests/results/examples/talk/4-function.1.result new file mode 100644 index 00000000..c9646a00 --- /dev/null +++ b/tests/results/examples/talk/4-function.1.result @@ -0,0 +1,2 @@ +'J'aime Paris !' +The translation of "I love Madrid!" into Spanish is: "Me encanta Madrid." \ No newline at end of file diff --git a/tests/results/examples/talk/4-function.12.result b/tests/results/examples/talk/4-function.12.result deleted file mode 100644 index 2d73b208..00000000 --- a/tests/results/examples/talk/4-function.12.result +++ /dev/null @@ -1,2 +0,0 @@ -The sentence 'I love Paris!' translates to 'Je t'aime Paris!' in French. However, if you want to say 'I love Paris' without the possessive pronoun, it would be 'Je aime Paris!'. -The sentence 'I love Madrid!' translates to 'Me encanta Madrid!' in Spanish. diff --git a/tests/results/examples/tutorial/parser_regex.3.result b/tests/results/examples/tutorial/parser_regex.3.result index 362bf86e..75ae44fb 100644 --- a/tests/results/examples/tutorial/parser_regex.3.result +++ b/tests/results/examples/tutorial/parser_regex.3.result @@ -1,7 +1,2 @@ -def add_numbers(a, b): - while b != 0: - carry = (a & b) << 1 - a = a ^ b - b = carry - - return a +result = add_two_numbers(3, 5) +print(result) # Output: 8