remove raw flag from ndnuon

This commit is contained in:
hackeryarn 2025-04-27 09:31:37 -05:00
parent 51741ed8b2
commit beedf6fa6a
No known key found for this signature in database
GPG Key ID: 5F62AEDC40AE8C1C
2 changed files with 6 additions and 6 deletions

View File

@ -96,8 +96,8 @@ export def equal [left: any, right: any, message?: string] {
}
text: (
"These are not equal.\n"
+ $" Left : '($left | to nuon --raw)'\n"
+ $" Right : '($right | to nuon --raw)'"
+ $" Left : '($left | to nuon)'\n"
+ $" Right : '($right | to nuon)'"
)
}
}
@ -114,7 +114,7 @@ export def "not equal" [left: any, right: any, message?: string] {
start: (metadata $left).span.start
end: (metadata $right).span.end
}
text: $"These are both '($left | to nuon --raw)'."
text: $"These are both '($left | to nuon)'."
}
}
@ -210,7 +210,7 @@ export def length [left: list, right: int, message?: string] {
}
text: (
"This does not have the correct length:\n"
+ $" value : ($left | to nuon --raw)\n"
+ $" value : ($left | to nuon)\n"
+ $" length : ($left | core length)\n"
+ $" expected : ($right)"
)
@ -231,7 +231,7 @@ export def "str contains" [left: string, right: string, message?: string] {
}
text: (
$"This does not contain '($right)'.\n"
+ $" value: ($left | to nuon --raw)"
+ $" value: ($left | to nuon)"
)
}
}

View File

@ -36,5 +36,5 @@ export def "from ndnuon" []: [string -> any] {
# Convert structured data to newline-delimited NUON (NDNUON)
export def "to ndnuon" []: [any -> string] {
each { to nuon --raw | str replace --all "\n" '\n' } | to text
each { to nuon | str replace --all "\n" '\n' } | to text
}