From 8701522e0686cafea856da3a0bc57099bc0d3510 Mon Sep 17 00:00:00 2001 From: kamangir Date: Mon, 11 Nov 2024 12:56:03 -0800 Subject: [PATCH] @list refactors - kamangir/bolt#746 --- README.md | 2 +- abcli/.abcli/tests/list.sh | 14 ++++++++++++++ abcli/__init__.py | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 08a094c8..78727621 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.154.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.414.1`](https://github.com/kamangir/awesome-bash-cli). +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). diff --git a/abcli/.abcli/tests/list.sh b/abcli/.abcli/tests/list.sh index 9aef050e..13fbf69b 100644 --- a/abcli/.abcli/tests/list.sh +++ b/abcli/.abcli/tests/list.sh @@ -34,6 +34,20 @@ function test_abcli_list_nonempty() { this,that } +function test_abcli_list_next() { + abcli_assert \ + $(abcli_list_next what what,which,this,that,something) \ + which + + abcli_assert \ + $(abcli_list_next this what,which,this,that,something) \ + that + + abcli_assert \ + $(abcli_list_next what what,which,this,that,something) \ + something - empty +} + function test_abcli_list_resize() { abcli_assert \ $(abcli_list_resize this,that,which 2) \ diff --git a/abcli/__init__.py b/abcli/__init__.py index fe70542d..a3df395f 100644 --- a/abcli/__init__.py +++ b/abcli/__init__.py @@ -6,7 +6,7 @@ DESCRIPTION = f"{ICON} a language to speak AI." -VERSION = "9.414.1" +VERSION = "9.415.1" REPO_NAME = "awesome-bash-cli"