Skip to content

Commit

Permalink
make sure results are correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Feb 4, 2009
1 parent 80249ee commit bacf2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/bson_benchmark.py
Expand Up @@ -59,9 +59,9 @@ def main():
print "enc json",
enc_json = run(case, json.dumps)
print "dec bson",
run(enc_bson, bson.to_dicts)
assert case == run(enc_bson, bson.to_dicts)[0]
print "dec json",
run(enc_json, json.loads)
assert case == run(enc_json, json.loads)

if __name__ == "__main__":
cProfile.run("main()")

0 comments on commit bacf2de

Please sign in to comment.