mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
add inspect implementation for dict and set
This commit is contained in:
parent
79a58843b5
commit
9b181e1b3f
5 changed files with 1239 additions and 2 deletions
1202
crates/compiler/test_mono/generated/inspect_derived_dict.txt
Normal file
1202
crates/compiler/test_mono/generated/inspect_derived_dict.txt
Normal file
File diff suppressed because it is too large
Load diff
|
@ -3420,3 +3420,19 @@ fn inspect_derived_list() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test(large_stack = "true")]
|
||||
fn inspect_derived_dict() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test"
|
||||
imports []
|
||||
provides [main] to "./platform"
|
||||
|
||||
main =
|
||||
Dict.fromList [("a", 1), ("b", 2)]
|
||||
|> Inspect.inspect
|
||||
|> Inspect.toDbgStr
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue