MCPcopy Create free account
hub / github.com/Chia-Network/clvm / test_various

Method test_various

tests/object_cache_test.py:16–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self.assertEqual(sl.get(obj), expected_length)
15
16 def test_various(self) -> None:
17 self.check(
18 "0x00",
19 "47dc540c94ceb704a23875c11273e16bb0b8a87aed84de911f2133568115f254",
20 1,
21 )
22
23 self.check(
24 "0", "4bf5122f344554c53bde2ebb8cd2b7e3d1600ad631c385a5d7cce23c7785459a", 1
25 )
26
27 self.check(
28 "foo", "0080b50a51ecd0ccfaaa4d49dba866fe58724f18445d30202bafb03e21eef6cb", 4
29 )
30
31 self.check(
32 "(foo . bar)",
33 "c518e45ae6a7b4146017b7a1d81639051b132f1f5572ce3088a3898a9ed1280b",
34 9,
35 )
36
37 self.check(
38 "(this is a longer test of a deeper tree)",
39 "0a072d7d860d77d8e290ced0fdb29a271198ca3db54d701c45d831e3aae6422c",
40 47,
41 )

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected