graywolf on Nostr: I do not understand how to use #test-error in #guile #srfi64. Why does this ...
I do not understand how to use #test-error in #guile #srfi64. Why does this
(test-error 'bb
(throw 'ff))
pass? I am using the test-driver.scm from Guix (I would hope it is right since Guix uses it), and this is the result logged:
test-name: load*:
location: test.scm:150
source:
+ (test-error 'bb (throw 'ff))
expected-error:
+ bb
actual-error:
+ (ff)
result: PASS
Hm...
Published at
2024-07-16 11:25:03Event JSON
{
"id": "26c4bfcf93968b270a4a9654dee6271bb50bf784f0f89505215801cdb2c1a8b4",
"pubkey": "9e5231bb994c213b4b5bc1d12b01260bc4a8238b77b38f81d1bd270d037e47a5",
"created_at": 1721129103,
"kind": 1,
"tags": [
[
"t",
"test"
],
[
"t",
"guile"
],
[
"t",
"srfi64"
],
[
"proxy",
"https://emacs.ch/users/graywolf/statuses/112795916903945773",
"activitypub"
]
],
"content": "I do not understand how to use #test-error in #guile #srfi64. Why does this\n\n(test-error 'bb\n (throw 'ff))\n\npass? I am using the test-driver.scm from Guix (I would hope it is right since Guix uses it), and this is the result logged:\n\ntest-name: load*: \nlocation: test.scm:150\nsource:\n+ (test-error 'bb (throw 'ff))\nexpected-error:\n+ bb\nactual-error:\n+ (ff)\nresult: PASS\n\nHm...",
"sig": "a4e8e1f963cf2452b47b50c9016f57c37166bc49d4e0311498a520be7e6c07c88a6f08f47557f4f99533dda200475cac6d5900dde70ae7c3035cf301f4c4322d"
}