mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
make DbgFormatter an unexposed implementation detail
This commit is contained in:
parent
22c5241e41
commit
e5a0af5699
7 changed files with 54 additions and 68 deletions
|
@ -3320,7 +3320,7 @@ fn inspect_derived_string() {
|
|||
imports []
|
||||
provides [main] to "./platform"
|
||||
|
||||
main = Inspect.inspect "abc" |> Inspect.toDbgStr
|
||||
main = Inspect.toStr "abc"
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3333,7 +3333,7 @@ fn inspect_derived_record() {
|
|||
imports []
|
||||
provides [main] to "./platform"
|
||||
|
||||
main = Inspect.inspect {a: 7, b: 3dec} |> Inspect.toDbgStr
|
||||
main = Inspect.toStr {a: 7, b: 3dec}
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3345,7 +3345,7 @@ fn inspect_derived_record_one_field_string() {
|
|||
imports []
|
||||
provides [main] to "./platform"
|
||||
|
||||
main = Inspect.inspect {a: "foo"} |> Inspect.toDbgStr
|
||||
main = Inspect.toStr {a: "foo"}
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3358,7 +3358,7 @@ fn inspect_derived_record_two_field_strings() {
|
|||
imports []
|
||||
provides [main] to "./platform"
|
||||
|
||||
main = Inspect.inspect {a: "foo", b: "bar"} |> Inspect.toDbgStr
|
||||
main = Inspect.toStr {a: "foo", b: "bar"}
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3371,7 +3371,7 @@ fn inspect_derived_nested_record_string() {
|
|||
imports []
|
||||
provides [main] to "./platform"
|
||||
|
||||
main = Inspect.inspect {a: {b: "bar"}} |> Inspect.toDbgStr
|
||||
main = Inspect.toStr {a: {b: "bar"}}
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3387,7 +3387,7 @@ fn inspect_derived_tag_one_field_string() {
|
|||
main =
|
||||
x : [A Str]
|
||||
x = A "foo"
|
||||
Inspect.inspect x |> Inspect.toDbgStr
|
||||
Inspect.toStr x
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3403,7 +3403,7 @@ fn inspect_derived_tag_two_payloads_string() {
|
|||
main =
|
||||
x : [A Str Str]
|
||||
x = A "foo" "foo"
|
||||
Inspect.inspect x |> Inspect.toDbgStr
|
||||
Inspect.toStr x
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3416,7 +3416,7 @@ fn inspect_derived_list() {
|
|||
imports []
|
||||
provides [main] to "./platform"
|
||||
|
||||
main = Inspect.inspect [1, 2, 3] |> Inspect.toDbgStr
|
||||
main = Inspect.toStr [1, 2, 3]
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
@ -3431,8 +3431,7 @@ fn inspect_derived_dict() {
|
|||
|
||||
main =
|
||||
Dict.fromList [("a", 1), ("b", 2)]
|
||||
|> Inspect.inspect
|
||||
|> Inspect.toDbgStr
|
||||
|> Inspect.toStr
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue