make DbgFormatter an unexposed implementation detail

This commit is contained in:
Brendan Hansknecht 2023-12-03 11:54:20 -08:00
parent 22c5241e41
commit e5a0af5699
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
7 changed files with 54 additions and 68 deletions

View file

@ -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
"#
)
}