bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#72368: srfi-64: test-begin does not set test-runner-test-name


From: Tomas Volf
Subject: bug#72368: srfi-64: test-begin does not set test-runner-test-name
Date: Tue, 30 Jul 2024 21:51:54 +0200

Hello,

I think I found a bug in (srfi srfi-64) module shipped with GNU Guile.

The specification says the following regarding the test-runner-test-name:

> Returns the name of the current test or test group, as a string. During
> execution of test-begin this is the name of the test group [..]

Thus I believe that following should print `x':

    (use-modules (srfi srfi-64))
    (let ((r (test-runner-null)))
      (test-runner-current r)
      (test-runner-on-group-begin! r
        (λ (runner suite-name count)
          (pk (test-runner-test-name r))))
      (test-begin "x"))

However it does not:

    ;;; ("")

Have a nice day
Tomas Volf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]