From 7f818a04ca2b72d5cfa693d86e1278c2cdd9a625 Mon Sep 17 00:00:00 2001 From: Marcos Henrich Date: Mon, 5 Feb 2024 18:33:33 +0000 Subject: [PATCH] Adds test case that covers PR #3818. (#5553) ## Description PR #3818 is no longer necessary and this PR proves that the test cases added on in already pass on master without any additional change. ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [x] I have added tests that prove my fix is effective or that my feature works. - [x] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. --- .../should_pass/language/where_clause_functions/src/main.sw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/language/where_clause_functions/src/main.sw b/test/src/e2e_vm_tests/test_programs/should_pass/language/where_clause_functions/src/main.sw index 2bb8e763c06..e8ef03ed376 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/language/where_clause_functions/src/main.sw +++ b/test/src/e2e_vm_tests/test_programs/should_pass/language/where_clause_functions/src/main.sw @@ -212,8 +212,8 @@ fn main() -> u64 { assert(m.x == 12u64); assert(m.y == 20u64); - // TODO(Esdrubal): reactivate this once fix in #3621 is merged - //test_ok_or(true, 0); + test_ok_or(0, true); + test_ok_or(true, 0); 42 }