Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ negative_numbers
Function
negative_numbers
nodedb-sql/src/parser/object_literal.rs:440–444 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
438
439
#[test]
440
fn negative_numbers() {
441
let m = parse(
"{ x: -42, y: -2.78 }"
);
442
assert_eq!(m[
"x"
], Value::Integer(-42));
443
assert_eq!(m[
"y"
], Value::Float(-2.78));
444
}
445
446
#[test]
447
fn nested_array_in_object() {
Callers
nothing calls this directly
Calls
1
parse
Function · 0.70
Tested by
no test coverage detected