diff options
author | Restioson <restiosondev@gmail.com> | 2021-08-24 23:51:05 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-08-25 19:03:19 +0200 |
commit | ed2e640dbdff88fe118d943fa0ea9ae00eb11555 (patch) | |
tree | 853003e3c57f412f27400a7458d55961a843259f /testing/templates/match-opt-bool.html | |
parent | 35cf03cf794b515afdb24a989e07b6acd0e2fc19 (diff) | |
download | askama-ed2e640dbdff88fe118d943fa0ea9ae00eb11555.tar.gz askama-ed2e640dbdff88fe118d943fa0ea9ae00eb11555.tar.bz2 askama-ed2e640dbdff88fe118d943fa0ea9ae00eb11555.zip |
Add test case for matching on Option<bool>
Diffstat (limited to '')
-rw-r--r-- | testing/templates/match-opt-bool.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/templates/match-opt-bool.html b/testing/templates/match-opt-bool.html new file mode 100644 index 0000000..d2e4454 --- /dev/null +++ b/testing/templates/match-opt-bool.html @@ -0,0 +1,8 @@ +{% match item %} +{% when Some with (true) %} +Found Some(true) +{% when Some with (false) %} +Found Some(false) +{% when None %} +Not Found +{% endmatch %} |