MCPcopy Index your code
hub / github.com/clips/pattern / test_map

Method test_map

test/test_db.py:1010–1015  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1008 print "pattern.db.Datasheet.copy()"
1009
1010 def test_map(self):
1011 # Assert Datasheet.map() (in-place).
1012 v = db.Datasheet(rows=[[1,2],[3,4]])
1013 v.map(lambda x: x+1)
1014 self.assertEqual(v, [[2,3],[4,5]])
1015 print "pattern.db.Datasheet.map()"
1016
1017 def test_json(self):
1018 # Assert JSON output.

Callers

nothing calls this directly

Calls 1

mapMethod · 0.95

Tested by

no test coverage detected