From 1da0a081389471196dd0f9a7a7291ab5eb0a4ac3 Mon Sep 17 00:00:00 2001 From: kamangir Date: Fri, 15 Nov 2024 20:29:38 -0800 Subject: [PATCH] test++ - kamangir/bolt#746 --- README.md | 2 +- abcli/.abcli/tests/list.sh | 26 ++++++++++++++++++++++++-- abcli/__init__.py | 2 +- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 78727621..f8d34774 100644 --- a/README.md +++ b/README.md @@ -63,4 +63,4 @@ create a copy of [`sample.env`](./abcli/sample.env) as `.env` and fill in the se [![pylint](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/awesome-bash-cli/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/abcli.svg)](https://pypi.org/project/abcli/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/abcli)](https://pypistats.org/packages/abcli) -built by 🌀 [`blue_options-4.155.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.415.1`](https://github.com/kamangir/awesome-bash-cli). +built by 🌀 [`blue_options-4.156.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.416.1`](https://github.com/kamangir/awesome-bash-cli). diff --git a/abcli/.abcli/tests/list.sh b/abcli/.abcli/tests/list.sh index 13fbf69b..01aa6704 100644 --- a/abcli/.abcli/tests/list.sh +++ b/abcli/.abcli/tests/list.sh @@ -44,8 +44,30 @@ function test_abcli_list_next() { that abcli_assert \ - $(abcli_list_next what what,which,this,that,something) \ - something - empty + "$(abcli_list_next something what,which,this,that,something)" \ + - empty + + abcli_assert \ + "$(abcli_list_next void what,which,this,that,something)" \ + - empty +} + +function test_abcli_list_prev() { + abcli_assert \ + "$(abcli_list_prev what what,which,this,that,something)" \ + - empty + + abcli_assert \ + $(abcli_list_prev this what,which,this,that,something) \ + which + + abcli_assert \ + $(abcli_list_prev something what,which,this,that,something) \ + that + + abcli_assert \ + "$(abcli_list_prev void what,which,this,that,something)" \ + - empty } function test_abcli_list_resize() { diff --git a/abcli/__init__.py b/abcli/__init__.py index a3df395f..b56f4dbe 100644 --- a/abcli/__init__.py +++ b/abcli/__init__.py @@ -6,7 +6,7 @@ DESCRIPTION = f"{ICON} a language to speak AI." -VERSION = "9.415.1" +VERSION = "9.416.1" REPO_NAME = "awesome-bash-cli"