Skip to content

Commit

Permalink
Fix tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
GearsDatapacks committed Nov 22, 2024
1 parent c3c4d13 commit 9b19288
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
source: compiler-core/src/language_server/tests/action.rs
expression: "pub fn main() {\n let \"123\" as one_two_three <> rest = \"123456\"\n}"
expression: "pub fn main() {\n let \"123\" as one_two_three <> rest = \"123456\"\n}"
---
----- BEFORE ACTION
pub fn main() {
let "123" as one_two_three <> rest = "123456"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔↑
let "123" as one_two_three <> rest = "123456"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔↑
}


----- AFTER ACTION
pub fn main() {
let #(one_two_three, rest) = case "123456" {
"123" as one_two_three <> rest -> #(one_two_three, rest)
_ -> todo
}
let #(one_two_three, rest) = case "123456" {
"123" as one_two_three <> rest -> #(one_two_three, rest)
_ -> todo
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
source: compiler-core/src/language_server/tests/action.rs
expression: "pub fn main() {\n let #(first, 10, third) = #(5, 10, 15)\n}\n"
expression: "pub fn main() {\n let #(first, 10, third) = #(5, 10, 15)\n}\n"
---
----- BEFORE ACTION
pub fn main() {
let #(first, 10, third) = #(5, 10, 15)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔↑
let #(first, 10, third) = #(5, 10, 15)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔↑
}


----- AFTER ACTION
pub fn main() {
let #(first, third) = case #(5, 10, 15) {
#(first, 10, third) -> #(first, third)
#(_, _, _) -> todo
}
let #(first, third) = case #(5, 10, 15) {
#(first, 10, third) -> #(first, third)
#(_, _, _) -> todo
}
}
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
source: compiler-core/src/language_server/tests/action.rs
expression: "pub fn main(result) {\n let [wibble] = {\n let Ok(wobble) = {\n result\n }\n [wobble]\n }\n}"
expression: "pub fn main(result) {\n let [wibble] = {\n let Ok(wobble) = {\n result\n }\n [wobble]\n }\n}"
---
----- BEFORE ACTION
pub fn main(result) {
let [wibble] = {
let Ok(wobble) = {
▔▔▔▔▔▔▔▔▔▔▔▔▔↑
result
}
[wobble]
let [wibble] = {
let Ok(wobble) = {
▔▔▔▔▔▔▔▔▔▔▔▔▔↑
result
}
[wobble]
}
}


----- AFTER ACTION
pub fn main(result) {
let [wibble] = {
let wobble = case {
result
} {
Ok(wobble) -> wobble
Error(_) -> todo
}
[wobble]
let [wibble] = {
let wobble = case {
result
} {
Ok(wobble) -> wobble
Error(_) -> todo
}
[wobble]
}
}
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
source: compiler-core/src/language_server/tests/action.rs
expression: "pub fn main(result) {\n let [wibble] = {\n let Ok(wobble) = {\n result\n }\n [wobble]\n }\n}"
expression: "pub fn main(result) {\n let [wibble] = {\n let Ok(wobble) = {\n result\n }\n [wobble]\n }\n}"
---
----- BEFORE ACTION
pub fn main(result) {
let [wibble] = {
▔▔▔▔▔▔▔▔▔▔▔↑
let Ok(wobble) = {
result
}
[wobble]
let [wibble] = {
▔▔▔▔▔▔▔▔▔▔▔↑
let Ok(wobble) = {
result
}
[wobble]
}
}


----- AFTER ACTION
pub fn main(result) {
let wibble = case {
let Ok(wobble) = {
result
}
[wobble]
} {
[wibble] -> wibble
[] -> todo
[_, _, ..] -> todo
let wibble = case {
let Ok(wobble) = {
result
}
[wobble]
} {
[wibble] -> wibble
[] -> todo
[_, _, ..] -> todo
}
}

0 comments on commit 9b19288

Please sign in to comment.