Skip to content

Commit

Permalink
multiline for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how authored and Yostra committed Jan 12, 2021
1 parent d77338b commit eb6c2f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test_cost_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,17 @@ async def test_strict_mode(self):
blocks[1].get_coinbase(),
)
assert spend_bundle is not None
program = binutils.assemble('(q ((0x3d2331635a58c0d49912bc1427d7db51afe3f20a7b4bcaffa17ee250dcbcbfaa (((c (q ((c (q ((c (i 11 (q ((c (i (= 5 (point_add 11 (pubkey_for_exp (sha256 11 ((c 6 (c 2 (c 23 (q ()))))))))) (q ((c 23 47))) (q (x))) 1))) (q (c (c 4 (c 5 (c ((c 6 (c 2 (c 23 (q ()))))) (q ())))) ((c 23 47))))) 1))) (c (q (57 (c (i (l 5) (q (sha256 (q 2) ((c 6 (c 2 (c 9 (q ()))))) ((c 6 (c 2 (c 13 (q ()))))))) (q (sha256 (q 1) 5))) 1))) 1)))) (c (q 0x88bc9360319e7c54ab42e19e974288a2d7a817976f7633f4b43f36ce72074e59c4ab8ddac362202f3e366f0aebbb6280) 1))) (() (q ((65 "00000000000000000000000000000000" 0x0cbba106e000))) ())))))')
program = binutils.assemble(
'(q ((0x3d2331635a58c0d49912bc1427d7db51afe3f20a7b4bcaffa17ee250dcbcbfaa'
'(((c (q ((c (q ((c (i 11 (q ((c (i (= 5 (point_add 11 '
'(pubkey_for_exp (sha256 11 ((c 6 (c 2 (c 23 (q ())))))))))'
' (q ((c 23 47))) (q (x))) 1))) (q (c (c 4 (c 5 (c ((c 6 (c 2'
' (c 23 (q ()))))) (q ())))) ((c 23 47))))) 1))) (c (q (57 (c '
'(i (l 5) (q (sha256 (q 2) ((c 6 (c 2 (c 9 (q ()))))) ((c 6 (c'
' 2 (c 13 (q ()))))))) (q (sha256 (q 1) 5))) 1))) 1)))) (c'
' (q 0x88bc9360319e7c54ab42e19e974288a2d7a817976f7633f4b43f36ce72074e59c4ab8ddac362202f3e366f0aebbb6280)'
' 1))) (() (q ((65 "00000000000000000000000000000000" 0x0cbba106e000))) ())))))'
)

error, npc_list, cost = get_name_puzzle_conditions(program, True)
assert error is not None
Expand Down

0 comments on commit eb6c2f3

Please sign in to comment.