From 6b50631a8d0aa1b64995ce562972068b9f214759 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 31 Mar 2025 03:24:43 -0600 Subject: stack.c.gen: Set up pytest --- build-aux/measurestack/test_misc.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 build-aux/measurestack/test_misc.py (limited to 'build-aux/measurestack/test_misc.py') diff --git a/build-aux/measurestack/test_misc.py b/build-aux/measurestack/test_misc.py new file mode 100644 index 0000000..5cdf629 --- /dev/null +++ b/build-aux/measurestack/test_misc.py @@ -0,0 +1,12 @@ +# build-aux/measurestack/test_misc.py - Miscellaneous tests for measurestack +# +# Copyright (C) 2025 Luke T. Shumaker +# SPDX-License-Identifier: AGPL-3.0-or-later + +# pylint: disable=unused-variable + +from . import BaseName, QName + + +def test_basename() -> None: + assert QName("foo.c:bar.1").base() == BaseName("bar") -- cgit v1.2.3-2-g168b