File: serialize.cdb

package info (click to toggle)
cadabra2 2.4.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 78,796 kB
  • sloc: ansic: 133,450; cpp: 92,064; python: 1,530; javascript: 203; sh: 184; xml: 182; objc: 53; makefile: 51
file content (9 lines) | stat: -rw-r--r-- 155 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
import pickle

def test01():
   ex := A_{\mu} + B_{\mu};
   obj = pickle.dumps(ex)
   assert(ex == pickle.loads(obj))
   print("Test 01 passed")

test01()