Anders and Briegel in Python
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- from abp import GraphState
- from abp import clifford
- from demograph import demograph
- import time
- import json
-
- def test_json_basic():
- """ Test that we can export to JSON """
- g = demograph()
- js = g.to_json()
- assert "adj" in js
- assert "node" in js
- e = GraphState()
-
- #TODO
- def _test_to_json():
- """ Nah """
- assert e != g
- e.from_json(js)
- assert e == g
-
|