diff options
author | Takashi Kokubun <[email protected]> | 2025-04-02 17:16:14 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-18 21:53:01 +0900 |
commit | a9809a6d666f338b10b7d5cecdff892b105cb346 (patch) | |
tree | c6dc988f29f93c6662e6643281d66c7ede437235 /zjit/src | |
parent | e9f6863e82e872f7e61f47510606335a79348cbd (diff) |
Fix inconsistent indentation
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'zjit/src')
-rw-r--r-- | zjit/src/hir.rs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index 6811561080..64c6ae55f4 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -2352,13 +2352,13 @@ mod tests { fn test_loop() { eval(" def test - result = 0 - times = 10 - while times > 0 - result = result + 1 - times = times - 1 - end - result + result = 0 + times = 10 + while times > 0 + result = result + 1 + times = times - 1 + end + result end test "); @@ -2416,12 +2416,12 @@ mod tests { fn test_display_types() { eval(" def test - cond = true - if cond - 3 - else - 4 - end + cond = true + if cond + 3 + else + 4 + end end "); assert_method_hir("test", expect![[r#" @@ -2520,12 +2520,12 @@ mod opt_tests { fn test_fold_iftrue_away() { eval(" def test - cond = true - if cond - 3 - else - 4 - end + cond = true + if cond + 3 + else + 4 + end end "); assert_optimized_method_hir("test", expect![[r#" @@ -2540,12 +2540,12 @@ mod opt_tests { fn test_fold_iftrue_into_jump() { eval(" def test - cond = false - if cond - 3 - else - 4 - end + cond = false + if cond + 3 + else + 4 + end end "); assert_optimized_method_hir("test", expect![[r#" @@ -2563,7 +2563,7 @@ mod opt_tests { fn test_fold_fixnum_add() { eval(" def test - 1 + 2 + 3 + 1 + 2 + 3 end test; test "); |