[09:32:47] 7673 [09:33:47] I tried implementing Z28392 in js using chatgpt but could not get it to output float64. Any clues? [09:41:29] @vrandecic this is an example of a function that could be useful for Wikivoyage :) [10:03:00] I think the JavaScript should just output a Number. I tried hardcoding the returned value to 4.12, and that passes (as does returning hours when set to 4.12). (re @Npriskorn: I tried implementing Z28392 in js using chatgpt but could not get it to output float64. Any clues?) [11:25:46] I rewrote it as a composition with a couple of support functions using this layout generated by chatgpt (re @wikilinksbot: Z28392 – Hiking time) [11:44:30] If there are no errors, maybe the expected value is incorrect, or there is a failure checking it? (re @Npriskorn: I rewrote it as a composition with a couple of support functions using this layout generated by chatgpt [11:44:30] add rational numbers [11:44:31] ├─...) [11:45:45] hm, i'll make a reference implementation in PAWS to check the test [11:49:02] The implementation seems to evaluate to 5/2 rather than 3/1 🤷‍♂️ (re @Npriskorn: hm, i'll make a reference implementation in PAWS to check the test) [11:50:44] yes, I get the same result in paws now [11:50:58] https://tools-static.wmflabs.org/bridgebot/717429d2/file_73974.jpg [15:09:38] I cannot find an existing function. [15:09:39] Typing in th Zid doesn't seem to work either [15:09:49] https://tools-static.wmflabs.org/bridgebot/cd83274b/file_73976.jpg [15:09:50] https://tools-static.wmflabs.org/bridgebot/83ee4dd1/file_73977.jpg [15:10:57] is this a known UI bug? [16:04:47] It’s not a bug. The context requires a string but the function you’re searching for returns an integer. If you specify an adapter function like Z25073, you should be able to find the function you were searching for. (re @Npriskorn: is this a known UI bug?) [16:44:41] oh, I didn't know it was context filtered (re @Al: It’s not a bug. The context requires a string but the function you’re searching for returns an integer. If you specify an adapte...) [17:39:56] Yes, it helps keep us on track 😎 (re @Npriskorn: oh, I didn't know it was context filtered, oh I see now that it is a list of strings.)