File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed
src/app/zkapps_examples/test/empty_update Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 1- (executable
1+ (test
22 (name empty_update)
33 (libraries
44 ;; opam libraries
5+ alcotest
56 async
67 async_kernel
78 async_unix
89 base
910 core
1011 core_kernel
11- ppx_inline_test.config
1212 yojson
1313 ;; local libraries
1414 cache_dir
1515 currency
1616 data_hash_lib
1717 genesis_constants
18- pasta_bindings
1918 kimchi_backend
2019 kimchi_pasta
2120 kimchi_pasta.basic
2423 mina_ledger
2524 mina_numbers
2625 mina_state
26+ mina_stdlib
2727 mina_transaction_logic
28+ pasta_bindings
2829 pickles
2930 pickles.backend
3031 pickles_base
3132 pickles_types
32- random_oracle_input
3333 random_oracle
34+ random_oracle_input
3435 sgn
3536 signature_lib
3637 snark_params
4041 transaction_snark_tests
4142 with_hash
4243 zkapps_empty_update
43- zkapps_examples
44- mina_stdlib)
44+ zkapps_examples)
4545 (preprocess
4646 (pps ppx_snarky ppx_version ppx_jane))
4747 (instrumentation
4848 (backend bisect_ppx)))
49-
50- (rule
51- (alias runtest)
52- (action
53- (run ./empty_update.exe)))
Original file line number Diff line number Diff line change 1+ (* * Testing
2+ -------
3+
4+ Component: Zkapps_examples
5+ Subject: Test zkapp empty update
6+ Invocation: \
7+ dune exec src/app/zkapps_examples/test/empty_update/empty_update.exe
8+ *)
9+
110open Transaction_snark_tests.Util
211open Core_kernel
312open Mina_base
@@ -137,7 +146,7 @@ let zkapp_command : Zkapp_command.t =
137146 ; memo
138147 }
139148
140- let () =
149+ let test_empty_update () =
141150 Ledger. with_ledger ~depth: ledger_depth ~f: (fun ledger ->
142151 Async.Thread_safe. block_on_async_exn (fun () ->
143152 let (_ : _ ) =
@@ -148,3 +157,8 @@ let () =
148157 (add_amount zero (Currency.Amount. of_nanomina_int_exn 500 ))) )
149158 in
150159 check_zkapp_command_with_merges_exn ledger [ zkapp_command ] ) )
160+
161+ let () =
162+ let open Alcotest in
163+ run " Empty update test"
164+ [ (" empty_update" , [ test_case " Empty_update" `Quick test_empty_update ]) ]
You can’t perform that action at this time.
0 commit comments