diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2023-04-02 23:43:23 +1200 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2023-04-02 23:43:23 +1200 |
| commit | 8bd7f4ec8f4885c0d8a915d4693e25935503d5bb (patch) | |
| tree | 24d8c865e320f99fed69a658b46768a324fb7010 /spec/practical/json_spec.cr | |
| parent | becabe55c4882a32e759430ae399c5e1e4057e2c (diff) | |
Add 'make' and 'pure' arguments to parser_chain
Diffstat (limited to 'spec/practical/json_spec.cr')
| -rw-r--r-- | spec/practical/json_spec.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/practical/json_spec.cr b/spec/practical/json_spec.cr index a0ce2db..cdd3425 100644 --- a/spec/practical/json_spec.cr +++ b/spec/practical/json_spec.cr @@ -47,7 +47,7 @@ describe "example: JSON parsing", tags: "example" do {front, digits}, {p, point}, {back, digits}, - finally: + make: case {front.empty?, p.nil?, back.empty?} when {true, false, false} Parser(Char, Float64).pure("0.#{back.join}".to_f64) |
