MCPcopy Create free account
hub / github.com/apache/tvm-ffi / TEST

Function TEST

tests/cpp/extra/test_json_writer.cc:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using namespace tvm::ffi;
29
30TEST(JSONWriter, BoolNull) {
31 // boolean value
32 EXPECT_EQ(json::Stringify(json::Value(true)), "true");
33 EXPECT_EQ(json::Stringify(json::Value(false)), "false");
34 EXPECT_EQ(json::Stringify(json::Value(nullptr)), "null");
35}
36
37TEST(JSONWriter, Integer) {
38 // positive integer

Callers

nothing calls this directly

Calls 2

StringifyFunction · 0.85
StringClass · 0.50

Tested by

no test coverage detected