From 8c3a1afab9efeb86e2f53d743551fc689fbad257 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 12 Jun 2022 13:33:48 -0400 Subject: De-sigil-ification: suffix : [Part 4] --- stdlib/source/test/aedifex/repository.lux | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'stdlib/source/test/aedifex/repository.lux') diff --git a/stdlib/source/test/aedifex/repository.lux b/stdlib/source/test/aedifex/repository.lux index 7766a492a..56a5c7b54 100644 --- a/stdlib/source/test/aedifex/repository.lux +++ b/stdlib/source/test/aedifex/repository.lux @@ -65,24 +65,24 @@ Version "4.5.6-NO") -(implementation: .public mock +(def: .public mock (/.Mock Store) - - (def: the_description - "@") - (def: (on_download uri state) - (case (dictionary.value uri state) - {.#Some content} - (case (binary.size content) - 0 (exception.except ..not_found [uri]) - _ {try.#Success [state content]}) - - {.#None} - (exception.except ..not_found [uri]))) - (def: (on_upload uri content state) - (if (dictionary.key? state uri) - (exception.except ..cannot_upload [uri]) - {try.#Success (dictionary.has uri content state)}))) + (implementation + (def: the_description + "@") + (def: (on_download uri state) + (case (dictionary.value uri state) + {.#Some content} + (case (binary.size content) + 0 (exception.except ..not_found [uri]) + _ {try.#Success [state content]}) + + {.#None} + (exception.except ..not_found [uri]))) + (def: (on_upload uri content state) + (if (dictionary.key? state uri) + (exception.except ..cannot_upload [uri]) + {try.#Success (dictionary.has uri content state)})))) (def: .public test Test -- cgit v1.2.3